Closed deini closed 7 years ago
Fix for https://github.com/angular-redux/ng-redux/issues/156:
So there were 2 issues, first the replace plugin has to go before other plugins such as commonjs.
replace
commonjs
Also we had browser in package.json which Webpack will default to when resolving modules, so instead of resolving to lib/ng-redux.js (main) or es/ng-redux.js (module) it was resolving to dist/ng-redux.js which we build with env set to development https://github.com/angular-redux/ng-redux/blob/e1973f7d95059ec6f36259d972c9e69170f248ec/package.json#L20
browser
lib/ng-redux.js
es/ng-redux.js
dist/ng-redux.js
development
FYI @maxlapides
Fix for https://github.com/angular-redux/ng-redux/issues/156:
So there were 2 issues, first the
replace
plugin has to go before other plugins such ascommonjs
.Also we had
browser
in package.json which Webpack will default to when resolving modules, so instead of resolving tolib/ng-redux.js
(main) ores/ng-redux.js
(module) it was resolving todist/ng-redux.js
which we build with env set todevelopment
https://github.com/angular-redux/ng-redux/blob/e1973f7d95059ec6f36259d972c9e69170f248ec/package.json#L20FYI @maxlapides