Skip to content

Add an option to add noConflict method to umd global - #580

Merged
Rich-Harris merged 3 commits into
rollup:masterfrom
evs-chris:master
Apr 22, 2016
Merged

Add an option to add noConflict method to umd global#580
Rich-Harris merged 3 commits into
rollup:masterfrom
evs-chris:master

Conversation

@evs-chris

Copy link
Copy Markdown
Contributor

I don't know if this was even something on the radar for rollup, but it seemed like a better solution than regexp hacking build output. So feel free to ignore this if it's not something rollup should handle 😄

This should only affect UMD modules when they're used as a global. I'm not 100% sure this is the best way to handle it, or if I've even put all the right things in the right places, but I did do a test build with this with Ractive and it seems to work as intended.

Linking - ractivejs/ractive#2066

@Rich-Harris
Rich-Harris merged commit 531f40c into rollup:master Apr 22, 2016
@Rich-Harris

Copy link
Copy Markdown
Contributor

Great idea – noConflict is used in a bunch of libraries so I think it's totally valid to have it as an option here. Cheers @evs-chris 🍻

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.

2 participants