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

Prevent Babel from transpiling node_modules packages #81

Merged
merged 2 commits into from
Mar 25, 2019

Conversation

db0sch
Copy link
Contributor

@db0sch db0sch commented Mar 25, 2019

Changes

Add a configuration line in config/webpack/environment.js to remove node_modules folder from being processed by loaders (including babel)

Was causing an issue with Mapbox js library.

Read more here:
Webpacker doc: https://github.com/rails/webpacker/blob/master/docs/v4-upgrade.md#excluding-node_modules-from-being-transpiled-by-babel-loader
Mapbox library issue: mapbox/mapbox-gl-js#3422

@db0sch db0sch added the bug label Mar 25, 2019
@db0sch db0sch self-assigned this Mar 25, 2019
@db0sch db0sch requested a review from Eschults March 25, 2019 17:27
@Eschults Eschults merged commit 89b7f3b into master Mar 25, 2019
@Eschults
Copy link
Member

🎉 🙏

@Eschults Eschults deleted the fix/prevent-webpacker-packages-transpiling-78 branch March 25, 2019 17:45
albertchae added a commit to rubyforgood/freeforest that referenced this pull request Apr 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants