component-webpack-plugin
component-webpack-plugin copied to clipboard
get module name from component.json
see webpack/webpack#337
Instead of infering the module name from the path name, it should be read from the component.json.
- Read all component.jsons for all dependencies.
- Use the component which component.jsons
namefield matches the request.
This is a bigger refactoring...
Thank you @sokra Now that I know how to temporarily fix it it isn't so urgent, but nice to have in the future. Im certain you have more urgent tasks at hands.
@lmartins, I was wondering what fix you used. I am having difficulty loading components with webpack. I think the plugin assumes the component.json file is a direct child of the component folder. While components folder structure seems to be more like:
component-name
|_ v.x.y.z
|_ component.json
|_ index.js
Even though I pass an array of paths for the lookupPaths, the plugin can't resolve the module.
Thanks!
@aminmeyghani although I will possibly use again in the future, I am now using a different solution and to be honest can't quite recall what I did then.
Thanks @lmartins ! Just wondering, do you use another plugin to work with component and webpack ?
No, for the time being im using JSPM to build my JS projects.