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

Make webpack browser compliant #127

Closed
wants to merge 1 commit into from

Conversation

acinader
Copy link

@acinader acinader commented Mar 2, 2016

Tell webpack to mock fs and child_process when packaging for the browser.

This will fix #89 and is lighter-weight than #66

See webpack/webpack#744 (comment) for webpak contributors advice on how to solve, which this pr implements:

"The proper course is [to] ask the module author to make the module browser compatible. The author can add browser: { fs: false, child_process: false } to the package.json to tell webpack that it's ok for the module to get an empty object for these modules."

Tell webpack to mock fs and child_process when packaging for the browser.

This will fix driverdan#89 and is lighter-weight than driverdan#66.
@acinader acinader changed the title Make webpack browser complient Make webpack browser compliant Mar 4, 2016
@acinader acinader closed this Oct 17, 2016
@revolunet
Copy link

what happened then ?

@acinader
Copy link
Author

never got a response so i just closed it. man blast from the past ;)....

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.

Add a browser specific entry point to work with browserify/webpack.
2 participants