module.exports = {
  webpack: function (config) {
    config.resolve.alias = {
      'react': 'preact-compat',
      'react-dom': 'preact-compat'
    }
    return config
  }
}

module.exports = {
  webpack: function (config) {
    config.resolve.alias = {
      'react': 'preact-compat/dist/preact-compat',
      'react-dom': 'preact-compat/dist/preact-compat'
    }
    return config
  }
}

Use the preact-compat dist version. (#760)