Hey guys, I wrote
rocket:module. I think the direction that Meteor 1.3 is going in is awesome.
Out-of-the-box might the new
modules package might not include all the features we have in Webpack (such as loading image files, loading SVG files, etc), but, the cool thing about
moduels package, so we’ll be able to do things like
meteor installsomebody:png-modules` and then write
import image from './path/to/image.png' // is actually importing `./path/to/image.png.js`, which was compiled by a build plugin
document.querySelector('img').src = image.url // `image.url` might be a `data:` URL, or a Blob URL, for example.
The build plugin would rename
image.png file to
image.png.js behind the scenes (it doesn’t actually rename your original source files).
I feel this will be a great alternative to Webpack. It’ll just be a matter of time before relevant build plugins are created by the community in order to compete with all the loaders that Webpack has (or transforms that Browserify has, etc). I think @benjamn’s implementation is a good direction to go in.