Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cheminfo-build format types #233

Open
arpanda opened this issue Aug 2, 2022 · 0 comments
Open

Cheminfo-build format types #233

arpanda opened this issue Aug 2, 2022 · 0 comments

Comments

@arpanda
Copy link

arpanda commented Aug 2, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant