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

Format source bundle as "iife" #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nrenner
Copy link

@nrenner nrenner commented Dec 5, 2020

Fixes #107.

Changing the Rollup output format for the source bundle from cjs (CommonJS) to iife (IIFE: Immediately-Invoked Function Expression) fixes directly using the source bundle with a script tag and our usage in brouter-web (concatenating source bundles).

Don't know if there was a specific reason to use cjs for the source bundle, while the minified bundle already uses the iife format. @TheGreatRefrigerator?

I don't have a setup to test all the module loaders and bundlers, but there is still the module wrapper that supports both AMD and CommonJS using globals, so I don't see how this change could break anything.

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

Successfully merging this pull request may close these issues.

Error using the source bundle
1 participant