{"library":"rollup-globals-regex","title":"rollup-globals-regex","description":"A Rollup plugin utility to define globals using RegExp patterns, reducing boilerplate for Angular, RxJS, and other scoped packages. Versions 0.0.x, no recent releases, single maintainer. Converts simple globals object from explicit mappings to regex-based pattern matching with optional transformers like kebab-to-camelCase. Ships TypeScript definitions. Not actively maintained but stable for basic usage.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-globals-regex"],"cli":null},"imports":["import { globalsRegex } from 'rollup-globals-regex'","import { GLOBAL } from 'rollup-globals-regex'","import type { GlobalsRegexTransformer } from 'rollup-globals-regex'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { globalsRegex, GLOBAL } from 'rollup-globals-regex';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'iife',\n    name: 'MyBundle',\n    globals: globalsRegex({\n      'jquery': '$',\n      'lodash': '_',\n      [GLOBAL.NG2]: GLOBAL.NG2.TPL,\n      [GLOBAL.RX]: GLOBAL.RX.TPL,\n    })\n  },\n  external: ['jquery', 'lodash', '@angular/core', '@angular/common', 'rxjs']\n};","lang":"typescript","description":"Shows how to configure Rollup globals using regex patterns for Angular and RxJS packages.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}