4 ms·
1. NPM is analogous to Maven for Java. Yes the ClojureScript bundler target lets you use anything you've installed from NPM into your project's `node_modules` d
by swannodette 6y ago
1. NPM is analogous to Maven for Java. Yes the ClojureScript bundler target lets you use anything you've installed from NPM into your project's `node_modules` directory. Not many limitations because we wash our hands of dealing with this stuff - use whatever popular bundler solution you prefer.
2. Not for creating NPM packages, just consuming them. Webpack lets you use dependencies from NPM and package them up into a single JS (or code-split) asset to be used on a webpage. Note, we have no integration to any particular bundler. You could just as easily run Metro for React Native on the output and build a mobile app.
- drcode 6y agoThanks, that clarifies things a lot!
- skybrian 6y agoCaveat: if you want your code to run in a web browser, you will need to be careful about which npm packages you use, since some are server-side only.
- cutler 6y agoHave you considered Parcel, going forward? It seems to be a lot lighter and easier than Webpack.
- swannodette 6y agoWe have no specific integration with Webpack, so you can consider anything since we haven't chosen for you :)
- deleted 6y ago[deleted]