Comments (6)
You need to load an ES6 polyfill so that ES6 APIs like Reflect
are available. The easiest way is to load babel-polyfill
.
from babel-plugin-transform-builtin-extend.
I can confirm this happens in node.js too. (just for information)
from babel-plugin-transform-builtin-extend.
V8 only got support for Reflect
in Chrome 49 so you'll want to use a polyfill with this for a while.
from babel-plugin-transform-builtin-extend.
any reason why you use Reflect?
from babel-plugin-transform-builtin-extend.
It seemed reasonable since most people are using polyfills, and otherwise it's a much bigger chunk of code that needs to be inlined into the class declaration. If someone wants to make an option to toggle that behavior I'd be open to it.
from babel-plugin-transform-builtin-extend.
new (Function.prototype.bind.apply(cls, args))();
isn't that much longer
from babel-plugin-transform-builtin-extend.
Related Issues (13)
- Plugin provided an invalid property of "default" HOT 5
- Reflect is not defined HOT 1
- Not listed on babel website
- instanceof doesn't work HOT 12
- Some strange interaction with builtin-extend, transform-runtime, and preset-es2015 HOT 1
- please add tag for 1.1.2 release HOT 1
- Is it not the same deal ?
- Typo in ReadMe's Limitations section renders sentence unclear
- Error while extending Date HOT 3
- When trying to run tests HOT 1
- Preserving stack trace when extending Error HOT 2
- doesn't seem to apply when running with transform-runtime HOT 1
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-plugin-transform-builtin-extend.