{"name":"babel-plugin-transform-builtin-extend","description":"A plugin for Babel 6 supports extending from builtin types based on static analysis.","version":"1.0.0","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":"544c5416fdc82fff8aa4f479ecfc124eb4767887","homepage":"https://github.com/loganfsmyth/babel-plugin-transform-builtin-extend#readme","_id":"babel-plugin-transform-builtin-extend@1.0.0","_shasum":"ad592fbd563ab4b72f844765a39c0e332c879b23","_from":".","_npmVersion":"3.4.1","_nodeVersion":"5.1.0","_npmUser":{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"},"dist":{"shasum":"ad592fbd563ab4b72f844765a39c0e332c879b23","tarball":"http://registry-npm.ywwl.com/babel-plugin-transform-builtin-extend/download/babel-plugin-transform-builtin-extend-1.0.0.tgz","integrity":"sha512-auKzA1pFpA1GASr2ceVmvsmNWu0tFsTE7M0BTVo1kMoGFhaZHNPo+FfHy/OxE2cYx/WXJb6/wNszZ9H3uO+O8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/9fOKu1ZBeOlAlwXASOr/GRaR+7pN6hAXxBDmsj8PWQIhAO/PjDcx/Xbbs2sBCgMYVsu46sm5LserK2jv8y631flF"}],"size":3469,"noattachment":false,"key":"/babel-plugin-transform-builtin-extend/-/babel-plugin-transform-builtin-extend-1.0.0.tgz"},"maintainers":[{"name":"loganfsmyth","email":"loganfsmyth@gmail.com"}],"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":1449821180497,"_cnpm_publish_time":1449821180497,"dist-tags":{"latest":"1.1.2"}}