cheminfo / tools

CLI tools to help cheminfo developers
MIT License
2 stars 3 forks source link

Cheminfo-build format types #233

Open arpanda opened 2 years ago

arpanda commented 2 years ago

Hi, The default cheminfo-build uses --format umd. Is it possible to change it to --format iife ?

As it uses roleup.js module, it has these options.

For browsers:

# compile to a <script> containing a self-executing function ('iife')
rollup main.js --file bundle.js --format iife
For Node.js:

# compile to a CommonJS module ('cjs')
rollup main.js --file bundle.js --format cjs
For both browsers and Node.js:

# UMD format requires a bundle name
rollup main.js --file bundle.js --format umd --name "myBundle"

Thanks Arijit