{"library":"babel-plugin-transform-proto-to-assign","type":"library","category":null,"description":"This Babel plugin transforms assignments to __proto__ into a shallow property copy, enabling prototype-like inheritance in environments that do not support __proto__ or Object.setPrototypeOf. The latest stable version is 6.26.0 (2017-01-30), part of Babel 6.x. It is maintained as part of the Babel monorepo but is considered legacy; Babel 7+ discourages use of this plugin and instead recommends using Object.setPrototypeOf or Object.create for performance reasons. The plugin does a shallow clone of all enumerable own properties from the target prototype. It works only with assignments like `obj.__proto__ = proto`, not `Object.setPrototypeOf`. It modifies Object.prototype, which can cause side effects. It is a single-purpose transform, not part of any preset-env. Alternative: use `@babel/plugin-transform-proto-to-assign` for Babel 7. The plugin is deprecated in favor of modern Object.setPrototypeOf.","language":"javascript","status":"deprecated","version":"6.26.0","tags":["javascript","babel-plugin"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-transform-proto-to-assign","imports":["module.exports = require('babel-plugin-transform-proto-to-assign');","require('babel-core').transform(code, { plugins: ['transform-proto-to-assign'] });","{\n  \"plugins\": [\"transform-proto-to-assign\"]\n}"]},{"cmd":"yarn add babel-plugin-transform-proto-to-assign","imports":[]},{"cmd":"pnpm add babel-plugin-transform-proto-to-assign","imports":[]}],"homepage":"https://babeljs.io","github":"https://github.com/babel/babel","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-transform-proto-to-assign","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-transform-proto-to-assign/compatibility"}}