Closed emschwartz closed 8 years ago
Hey @emschwartz,
As tests pass, there are no problems in production. It works because we require those modules from inside (they aren't build as commonjs). In case we make them as independent npm packages, we'll have to use add-module-exports
or to add .default
when requiring. Likewise https://github.com/zalmoxisus/browser-redux/blob/master/src/app/store/configureStore.js#L21-L22.
I'm working on a modified version of the boilerplate so it may have been something wrong with my version. I ran into errors saying the module imported there wasn't a function because it wasn't handling the .default
properly but never mind if it's not an issue for others
If I'm interpreting this correctly, I think these lines https://github.com/zalmoxisus/browser-redux/blob/master/src/app/store/configureStore.js#L9-L10 will only work with the
add-module-exports
plugin that is included inwebpack/dev.config.js
but not inwebpack/prod.config.js
.