{"library":"rollup-plugin-gas","title":"rollup-plugin-gas","description":"A Rollup plugin that bundles JavaScript/TypeScript code into a single file compatible with Google Apps Script (GAS). Version 1.0.0 is stable; no release cadence documented. It transpiles imports/exports (ES modules) into a single script with a global namespace, which is required by GAS as it does not support modules natively. Key differentiator: integrates tightly with Rollup's build pipeline. Compared to alternatives like clasp or gas-webpack-plugin, it leverages Rollup's tree-shaking and plugin ecosystem.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-gas"],"cli":null},"imports":["import gas from 'rollup-plugin-gas'","import gas from 'rollup-plugin-gas'","import type { Plugin } from 'rollup'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport gas from 'rollup-plugin-gas';\n\nexport default {\n  input: 'src/index.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'esm' // or 'iife' – rolled into single file\n  },\n  plugins: [gas()]\n};","lang":"javascript","description":"Shows how to configure Rollup with rollup-plugin-gas to bundle a JS file for Google Apps Script.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}