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

Fix pkg entry file for browser (compiled) #513

Merged
merged 2 commits into from
May 16, 2020
Merged

Conversation

leomp12
Copy link
Contributor

@leomp12 leomp12 commented May 6, 2020

Fix to handle import ejs from 'ejs' within bundlers such as Webpack.

Fix to handle `import ejs from 'ejs'` within bundlers such as Webpack
@mde mde merged commit 1be9d90 into mde:master May 16, 2020
@mde
Copy link
Owner

mde commented May 16, 2020

Thank you!

@leomp12 leomp12 deleted the fix/browser-entry branch May 16, 2020 23:47
@mde
Copy link
Owner

mde commented May 18, 2020

Heads up: I had to remove the "browser" property for Browserify to work when creating the most recent bugfix release. I haven't done the research to see how these work, but you'll need to make sure you can run the jake package command successfully before we can put it back.

@mde
Copy link
Owner

mde commented May 18, 2020

Also, I'm not sure the UMD module generated by Browserify is what we want to be specifying for all bundlers. This had some helpful info: https://github.com/defunctzombie/package-browser-field-spec

@leomp12
Copy link
Contributor Author

leomp12 commented May 18, 2020

@mde okay, I'll take a look

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