Skip to content

Instantly share code, notes, and snippets.

@theKashey
Created October 6, 2018 09:57
Show Gist options
  • Select an option

  • Save theKashey/b8dfc49eff34b5fa44d4e2af164ad6cd to your computer and use it in GitHub Desktop.

Select an option

Save theKashey/b8dfc49eff34b5fa44d4e2af164ad6cd to your computer and use it in GitHub Desktop.
preact
{
// ...
resolve: {
alias: {
'react': 'preact-compat',
'react-dom': 'preact-compat',
// Not necessary unless you consume a module using `createClass`
'create-react-class': 'preact-compat/lib/create-react-class',
// Not necessary unless you consume a module requiring `react-dom-factories`
'react-dom-factories': 'preact-compat/lib/react-dom-factories'
}
}
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment