Skip to content

Comments

[WIP] use gulp-umd instead of browserify-shim#25

Open
jochenberger wants to merge 1 commit intoJedWatson:masterfrom
jochenberger:use-gulp-umd
Open

[WIP] use gulp-umd instead of browserify-shim#25
jochenberger wants to merge 1 commit intoJedWatson:masterfrom
jochenberger:use-gulp-umd

Conversation

@jochenberger
Copy link

Bundles created using browserify-shim do not work in AMD enviroments. https://github.com/eduardolundgren/gulp-umd creates proper UMD wrappers and should be able solve problems like JedWatson/react-select#270.
I don't have much experience with browserify/gulp/node, but this is what I've come up with.
However, when trying the changes on react-select, I end up with an empty dist file.

@jochenberger
Copy link
Author

Maybe rollup-stream is a better alternative: https://github.com/gulpjs/gulp/blob/master/docs/recipes/rollup-with-rollup-stream.md

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.

1 participant