codegen seems to be running before other plugins regardless of order?
See original GitHub issueIn short, I’m having this issue:
// @codegen
import fs from 'fs';
the above throws unexpected token import
, if I remove the // @codegen
line it works fine. My babel plugins are:
['transform-es2015-modules-commonjs', 'transform-flow-comments', 'codegen']
I’d expect that codegen
would get code transformed from transform-es2015-modules-commonjs
and then execute that, but it doesn’t seem to be the case. Thoughts?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Using babel-plugin-codegen to generate boilerplate ... - Medium
babel-plugin-codegen. The plugin runs at build time (in my case via webpack / babel-loader ), generating a string of code from code and ......
Read more >Widget Code Generator by Figma
Run the plugin. Once you have Widget Code Generator installed, you can run it a few different ways: Right-click on the canvas >...
Read more >Maven is not working in Java 8 when Javadoc tags are ...
Any workaround about how to build the sources, install the project and generate the Javadoc JAR in one step as it was working...
Read more >Introducing GraphQL Code Generator – The Guild
I wrote the code generator based on my experience with other robust code generators (such as Swagger codegen). You can create your own...
Read more >RTI Code Generator User's Manual
On Windows systems: Before running rtiddsgen, run VCVARS32.BAT in the same command prompt that you will use to run rtiddsgen. The VCVARS32.BAT file...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
babel-plugin-codegen no longer runs your codegen-source code through babel. It must be written in code that’s supported natively in the version of node you’re running.
I get
Trying to do so: