Comments (5)
@ev1stensberg @developit any ideas?
from babel-esm-plugin.
Could you give a code example if you have one?
from babel-esm-plugin.
@ev1stensberg Sure,
Here I create a childCompiler: https://github.com/prateekbh/babel-esm-plugin/blob/master/src/index.js#L25
then I loop over every entry point and add them via SingleEntryPlugin
https://github.com/prateekbh/babel-esm-plugin/blob/master/src/index.js#L27-L29
This generates the bundles and chunks as expected. But, the bundles generated does not have
e.g.
es5 bundles generated without this plugin say(index.js) will have this but the mirrored bundle (index.es6.js) will not have the same.
Is this the expected functionality: https://github.com/webpack/docs/wiki/internal-webpack-plugins#singleentryplugincontext-request-chunkname???
If yes, is there a plugin which can actually include this code?
from babel-esm-plugin.
I don't really know to be honest. @TheLarkInn might have some input on that.
from babel-esm-plugin.
I fixed this by adding https://github.com/prateekbh/babel-esm-plugin/blob/master/src/index.js#L40
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
- generate bundle with a different targets HOT 5
- 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.