Support webpack#1
Conversation
|
My vote would be to continue to use ES6 modules. If you need CommonJS for some reason, the dist process already takes care of that for you. Also, the @petehunt Can you use the existing setup to compile down to CommonJS and then use bundles? |
|
This will work transparenly with es6 modules I think, I just was in experiment mode and wanted to use commonjs which I'm more familiar with. You can set up webpack to use the loader automatically so no prefix is required. |
|
This is great! Still checking it out, but:
:) |
|
@petehunt I converted the lib over to cjs + webpack (master got way ahead of this, was simpler to just convert it all again), but I can't get the partial loading example to work anymore. Care to make it work with latest master? Just rename Currently its adding all the async components into the build (?) and also creating a bizarre |
|
closed in favor of 9f43019 |
I moved everything to commonjs because I understand it better, but you could use
es6-loaderinstead. Note that this takes care of optimizing your app into multiple bundles so you don't have to worry about it. Tried to change as little as possible.