How to use with npm and webpack? #102
Comments
Myes, it seems like the jQuery plugin wasn't ever made for CommonJS. We could add We could also make everything CommonJS and use webpack to publish a UMD package to npm/bower. Leaving this open for ideas and/or PRs. |
Just wanted to add that the defined module |
@johnmee Can you give it a shot (see my previous comment) and submit a PR if it works for you? |
A variation to solve this for webpack, without setting up aliases.
|
Why wasn't this fixed? |
@olee You're correct, feel free to open a PR and ping me for code review. |
…pack Use actual package name in AMD definition #102
Similar to issue #98 I'm trying to work out how to use this with webpack directly from the npm package without much success.
require('grid-list') loads the gridList.js ok, but jquery.gridList.js is not loaded.
Following it up with require('grid-list/src/jquery.gridList.js') generates this error...
I've tried any number of incantations involving 'expose' and 'imports' without success. I confess I don't know the internals of what happens to do much more than take potshots in the dark.
I do get success if I resolve.alias the two files in the webpack.config.js. With those in place I can just require both aliases and everything is good to go.
Just wondering if anyone has struck upon an incantation that will work without the aliases?
The text was updated successfully, but these errors were encountered: