babel-plugin-proxy
babel-plugin-proxy copied to clipboard
Use ES6 proxies today!
Broken in babel7. Have plant to work with babel7?
Not sure why this is happening. Is the plugin outdated with latest babel? ``` ERROR in ./file.js Module build failed: TypeError: [...]\file.js Property value expected type of string but got...
I get this error > TypeError: globalGetInterceptor(...) is not a function When I try to add this plugin to my babelrc file. Any idea why this is happening?
```js | | var getId = exports.getId = function getId() { | return globalGetInterceptor(global, "id")++; | }; ``` So, this is the error, not really sure how to fix it...
Fixes #4
```js var handler = { get: function(target, name) { return name in target ? target[name] : 37; } }; var p = new Proxy({}, handler); p.a = 1; p.b =...
when use `exports` err occur test.js: ``` js module.exports = new Proxy({}, { get: (target, property) => (test) => [target, property, test] }); ``` demo.js: ``` js import {test} from...