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

Browser main to resolve #76 'Critical dependencies' in Webpack #1

Closed
wants to merge 2 commits into from

Conversation

ian-craig
Copy link
Owner

Fixes benjamine#76 by adding a main-browser.js which is triggered by the "browser": "./src/main-browser.js" property in package.json.

Moved common logic into main-common.js, but otherwise main.js is functionally equivalent. If all bundlers respected the "browser" field this wouldn't be necessary, but I don't think older versions of Webpack do.

Basic testing in Webpack and Browserify (both regular and with --no-browser-field to force), but I'm not super familiar with Browserify.

@ian-craig ian-craig closed this Jan 30, 2018
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