{"name":"babel-plugin-transform-builtin-extend","description":"A plugin for Babel 6 supports extending from builtin types based on static analysis.","version":"1.1.2","author":{"name":"Logan Smyth","email":"loganfsmyth@gmail.com"},"main":"lib","license":"MIT","repository":{"type":"git","url":"git+https://github.com/loganfsmyth/babel-plugin-transform-builtin-extend.git"},"bugs":{"url":"https://github.com/loganfsmyth/babel-plugin-transform-builtin-extend/issues"},"keywords":["babel","babel-plugin","es6","classes"],"devDependencies":{"babel-cli":"^6.2.0","babel-plugin-transform-runtime":"^6.1.18","babel-preset-es2015":"^6.1.18","chai":"^3.4.1","mocha":"^2.3.4"},"dependencies":{"babel-runtime":"^6.2.0","babel-template":"^6.3.0"},"scripts":{"build":"babel src -d lib","watch":"babel src -d lib -w","prepublish":"npm run build","test":"babel-node node_modules/.bin/_mocha --recursive test"},"gitHead":"96c102445b8ff8949d44aa2ba083b9aaacee5149","homepage":"https://github.com/loganfsmyth/babel-plugin-transform-builtin-extend#readme","_id":"babel-plugin-transform-builtin-extend@1.1.2","_shasum":"5e96fecf58b8fa1ed74efcad88475b2af3c9116e","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},"dist":{"shasum":"5e96fecf58b8fa1ed74efcad88475b2af3c9116e","tarball":"http://registry-npm.ywwl.com/babel-plugin-transform-builtin-extend/download/babel-plugin-transform-builtin-extend-1.1.2.tgz","integrity":"sha512-foUQxHjMiLNynzJaBKrIoZfoRY22S620MLafGC5UfnBEwqcBODIFcgwqqzHE8Hj590lbUJCQ2uBo9y08+sYIkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSNSVJFXG+Ge28XgzEVDDX1K9Meo/st5M+tToVhL7YKgIgasB1BmFLhdV0mT5xBqu2p1bhkdlwz5p639Q9SPCq2H0="}],"size":3506,"noattachment":false,"key":"/babel-plugin-transform-builtin-extend/-/babel-plugin-transform-builtin-extend-1.1.2.tgz"},"maintainers":[{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/babel-plugin-transform-builtin-extend-1.1.2.tgz_1486755007109_0.22559013892896473"},"directories":{},"readme":"\n# Babel Builtin Constructor extension plugin\n\nThis is a Babel 6 plugin to enable extending builtin types like \"Error\" and \"Array\" and such,\nwhich require special treatment and require static analysis to detect.\n\n\n## Usage\n\nIn your Babel 6 configuration, for example in a `.babelrc` you might have\n\n\n```\n{\n    \"plugins\": [\n        [\"babel-plugin-transform-builtin-extend\", {\n            globals: [\"Error\", \"Array\"]\n        }]\n    ]\n}\n```\n\nwhich would enable the plugin and configure it to look for any class extending `Error` or `Array` globals.\n\n## IE<=10\n\nOn older browsers that do not support reassigning the prototype of an existing object, you will need to\nenable the `approximate` mode, which will fall back to the Babel 5 behavior of using simple ES5 inheritance\nto approximate extending a class, though your results may vary depending on your goals.\n\n\n```\n{\n    \"plugins\": [\n        [\"babel-plugin-transform-builtin-extend\", {\n            globals: [\"Error\", \"Array\"],\n            approximate: true\n        }]\n    ]\n}\n```\n\n## Limitations\n\nThis plugin will only reles on assigning `__proto__` for static property inheritance from parent constructors.\nIf you are relying on this, it will not work on IE<=10 and any other browsers that don't support `__proto__`.\n","publish_time":1486755008937,"_cnpm_publish_time":1486755008937,"dist-tags":{"latest":"1.1.2"}}