{"library":"babel-plugin-transform-cup-globals","type":"library","category":null,"description":"Babel plugin that transforms global references for create-universal-package (CUP). At version 1.0.2 (last released in 2019), it is in maintenance mode with no active development. Converts environment-specific globals (e.g., `__BROWSER__`, `__SERVER__`) to boolean literals at compile time. Compared to general-purpose Babel macros or DefinePlugin, this plugin is tightly coupled to CUP and may not work with newer Babel versions (v7+). Requires Node >=6 and a Babel preset or plugin pipeline that invokes it before other transforms.","language":"javascript","status":"maintenance","version":"1.0.2","tags":["javascript"],"last_verified":"Sat Apr 25","install":[{"cmd":"npm install babel-plugin-transform-cup-globals","imports":["module.exports = require('babel-plugin-transform-cup-globals');\n// or in .babelrc: \"plugins\": [\"transform-cup-globals\"]","// .babelrc\n{\n  \"plugins\": [\"transform-cup-globals\"]\n}"]},{"cmd":"yarn add babel-plugin-transform-cup-globals","imports":[]},{"cmd":"pnpm add babel-plugin-transform-cup-globals","imports":[]}],"homepage":null,"github":"https://github.com/rtsao/create-universal-package","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-transform-cup-globals","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}