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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export UMD #3

Open
jamesplease opened this issue Dec 14, 2014 · 3 comments
Open

Export UMD #3

jamesplease opened this issue Dec 14, 2014 · 3 comments

Comments

@jamesplease
Copy link
Contributor

馃憤

@jridgewell
Copy link
Owner

I've been toying around with the idea of ES6 modules that'll be exported into AMD/CommonJS/browser versions. I used to export AMD versions, but decided against it since shimming did everything needed with no extra code. And there was never a need for a CommonJS, since Minionette was (and still is, since I haven't released a new version) just View code.

@jamesplease
Copy link
Contributor Author

I've been toying around with the idea of ES6 modules that'll be exported into AMD/CommonJS/browser versions.

馃憤 If you need any help with figuring that out, I can try to lend a hand. @thejameskyle may have some suggestions, too.

I used to export AMD versions, but decided against it since shimming did everything needed with no extra code.

Makes sense.

And there was never a need for a CommonJS, since Minionette was (and still is, since I haven't released a new version) just View code.

I think the CommonJS format would be useful for people using browserify/webpack.

@jamiebuilds
Copy link

Transpiling ES6 to UMD with only common.js and amd is easy. But it would be difficult to get support for browser globals. Which is why I've adopted the pattern of authoring in ES6 and writing a _wrapper.js file which comes out like this. And here's the gulp build task.

@jridgewell jridgewell mentioned this issue Dec 14, 2014
Open
6 tasks
jridgewell added a commit that referenced this issue Dec 19, 2014
Closes #3, for now. Still looking into ES6 modules.
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

3 participants