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.
npm install babel-plugin-transform-cup-globalsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates installing the plugin and configuring Babel to transform CUP globals like __BROWSER__ into boolean literals.
If not using CUP, consider alternatives like babel-plugin-transform-define or setting environment-specific globals via DefinePlugin.
Use a newer Babel 6 environment or adapt the plugin source code for Babel 7+.
Run npm install --save-dev babel-plugin-transform-cup-globals
Ensure plugin is listed as a string in the plugins array, e.g., "plugins": ["transform-cup-globals"]
No dependency data recorded yet.