eik-lib / issues

Issues and discussions that span all of Eik
https://eik.dev
1 stars 0 forks source link

Webpack loader for import maps #11

Closed emilhauk closed 2 years ago

emilhauk commented 3 years ago

Not exactly fully featured or anything, but here's a loader for using import maps in webpack: https://www.npmjs.com/package/webpack-import-maps-loader

This is just ment to be FYI. You may close this "issue" :)

trygve-lie commented 2 years ago

Awesome! I'll have a look and see if we can use it for a eik plugin. Thanks a lot!

emilhauk commented 2 years ago

Slight update on this. I could never get webpack to ignore "regular" imports, and the loader never reflected this.

I have updated the loader to throw an error if this is attempted. If you know a way around this, please let me know/push a pr to https://github.com/emilhauk/webpack-import-maps-loader!

trygve-lie commented 2 years ago

There is now a webpack plugin available: https://github.com/eik-lib/webpack-plugin