taskrjs / fly-babel Goto Github PK
View Code? Open in Web Editor NEWFly plugin for Babel
License: MIT License
Fly plugin for Babel
License: MIT License
You don't need the CLI and extras in the babel
npm package.
@bucaran please update this to 0.7.0
or 0.6.1
& publish to npm.
The registry's latest copy is 0.6.0
and that doesn't include the babel fixes from my last PR.
Thanks!
It seems that fly-babel plugin doesn't create .js.map files whether the sourceMaps option is set to true
or "both"
Code snippet:
export async function builder() {
await this
.source("./**/*.es6")
.babel({
"stage": 1,
"sourceMaps": true
})
.target("")
}
The latest update to fly(1.3.0) broken this package. Here's the stack trace for the error I'm getting when trying to use the latest version of fly.
stack:
- ReferenceError: [BABEL] unknown: Unknown option: base.file. Check out http://babeljs.io/docs/usage/options/ for more info
- at Logger.error (~/Sites/styleguide.local/site/n/node_modules/babel-core/lib/transformation/file/logger.js 43:11)
- at OptionManager.mergeOptions (~/Sites/styleguide.local/site/n/node_modules/babel-core/lib/transformation/file/options/option-manager.js 307:20)
- at OptionManager.init (~/Sites/styleguide.local/site/n/node_modules/babel-core/lib/transformation/file/options/option-manager.js 506:10)
- at File.initOptions (~/Sites/styleguide.local/site/n/node_modules/babel-core/lib/transformation/file/index.js 243:89)
- at new File (~/Sites/styleguide.local/site/n/node_modules/babel-core/lib/transformation/file/index.js 159:72)
- at Pipeline.transform (~/Sites/styleguide.local/site/n/node_modules/babel-core/lib/transformation/pipeline.js 49:16)
- at Fly.<anonymous> (~/Sites/styleguide.local/site/n/node_modules/fly-babel/index.js 6:34)
- at ~/Sites/styleguide.local/site/n/node_modules/fly/lib/fly.js 317:48
- at [object Generator].next (native)
- at onFulfilled (~/Sites/styleguide.local/site/n/node_modules/co/index.js 65:19)
message: [BABEL] unknown: Unknown option: base.file. Check out http://babeljs.io/docs/usage/options/ for more info
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.