You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's already configured for Preact apps by default so you can reuse existing React components without any config, so try removing your webpack.aliases config.
The error is caused by preact-compat having a module entry in its package.json which results in Webpack 2 pulling in some untranspiled ES6 which UglifyJS can't handle (see #244).
Seems like it's even better than I thought! Thanks for this project, by the way. It's exactly what I was looking for and it's been a pleasure to use up to now, I can edit the doc if you want!
Closing in favour of #247, which contains actionable outcomes from this issue - I hadn't thought to add a config hint for this case, which could have told you this was already handled when you configured these aliases yourself.
nwb is installed globally
node : 7.4.0
npm : 4.1.1
nwb: 0.15.2
node_modules :
How can i use preact-compat with nwb ? it works fine in development using this in
nwb.config.js
:but at build it yields this error:
The text was updated successfully, but these errors were encountered: