{"library":"rollup-plugin-google-apps-script","title":"rollup-plugin-google-apps-script","description":"Rollup plugin for Google Apps Script that generates top-level function declarations from global object assignments, enabling local development with modern bundlers and deployment via clasp. Current stable version 2.0.2, with support for Rollup ^3.25.0 || ^4.0.0 and Vite ^4.4.9. Maintained by mato533, inspired by gas-webpack-plugin. Releases are occasional; latest includes dependency updates and gas-entry-generator options. Key differentiators: works with both Rollup and Vite, generates GAS-compatible bundle structure, supports TypeScript out of the box.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-google-apps-script"],"cli":null},"imports":["import gasPlugin from 'rollup-plugin-google-apps-script'","import gasPlugin from 'rollup-plugin-google-apps-script'","import type { GasPluginOptions } from 'rollup-plugin-google-apps-script'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import gasPlugin from 'rollup-plugin-google-apps-script';\nimport { defineConfig } from 'vite';\n\nexport default defineConfig({\n  plugins: [\n    gasPlugin({\n      include: ['**/*.js'],\n      moduleHeaderComment: true,\n      manifest: {\n        copy: true,\n        srcDir: 'src',\n      },\n      gasEntryOptions: {\n        comment: true,\n        autoGlobalExports: false,\n        exportsIdentifierName: 'exports',\n        globalIdentifierName: 'global',\n      },\n      verbose: true,\n    }),\n  ],\n  build: {\n    outDir: 'dist',\n    rollupOptions: {\n      input: 'src/main.js',\n      output: {\n        format: 'esm',\n        entryFileNames: 'bundle.js',\n      },\n    },\n  },\n});","lang":"typescript","description":"Configures Vite with the gas plugin, setting input file, output directory, and GAS-specific options like manifest copy and entry generator settings.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}