Comments (5)
thanks for your replies! Yes the .es6
file is getting generated, and while I was setting up my test case, I see that it does work as expected. For some reason in my project it isn't..I'll investigate some more.
from babel-esm-plugin.
That's weird, you do get an additional bundle as the output though?
from babel-esm-plugin.
Expected behavior is exactly what you’re looking for .
we can use some help for a repro of the bug
from babel-esm-plugin.
After some digging I found the issue in my implementation, in my case I had multiple babel-loaders rules: one that only included application code and excluded node_modules
and one that only included node_modules
- which caused this issue with the babel-esm-plugin
.
My workaround was removing my node_modules
rule and doing everything with one babel-loader
rule (which eventually was better anyway) so I just wanted to let you know and see if this is a usecase you want to support?
I really enjoyed reading the blogpost about making this module and tried out some fixes, but I couldn't solve this issue myself. Maybe if you'd give me some pointers (and want to support this use case) I can make a PR.
Here's the test case I made to help clarify the issue:
- config: https://github.com/rickiesmooth/babel-esm-plugin/blob/task/reproducible-example-of-issue-with-multiple-loaders/tests/es5-target/es5-target.test.js
- actual output: https://github.com/rickiesmooth/babel-esm-plugin/blob/task/reproducible-example-of-issue-with-multiple-loaders/tests/es5-target/fixtures/output.es6.js
from babel-esm-plugin.
@prateekbh please let me know if you need any more info
from babel-esm-plugin.
Related Issues (20)
- Make it work with webpack dev server HOT 2
- Does not handle exterals HOT 1
- Different hash HOT 10
- Switch dependencies and devDependencies HOT 1
- Crashes when entry is a string
- does it work with jest? HOT 1
- Does not work with vue-loader? HOT 8
- Doesn't seem to exclude externals from bundle HOT 6
- TypeError: Cannot read property 'includes' of undefined
- TypeError: Cannot read property 'targets' of undefined
- Automatically switch Terser/Uglify to ecma:8 input & output HOT 4
- Peer dependency of fixed webpack version HOT 2
- Does the plugin work with babel.config.js and browserslist ? HOT 6
- empty sourcemaps for esm bundle HOT 12
- Breaking with webpack 5 rc3 HOT 3
- Document usage with html-webpack-plugin HOT 1
- Combine with webpack-manifest-plugin
- Is this plugin still in development? Is it fully compat with latest webpack 5?
- Syntax Error: Error: [BABEL] /home/isub/My Space/gakkou-in/src/main.ts: .options_ is not a valid Plugin property
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel-esm-plugin.