{"library":"rollup-preserve-directives","title":"rollup-preserve-directives","description":"Rollup plugin to preserve shebang and string directives (e.g., 'use strict') in bundled output. Current stable version 1.1.3, maintained actively. No external dependencies, ships TypeScript types. Key differentiator: handles shebang and directives that Rollup's tree-shaking may remove, and exposes metadata for inter-plugin communication. Renamed from rollup-swc-preserve-directives in v1.0.0.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-preserve-directives"],"cli":null},"imports":["import preserveDirectives from 'rollup-preserve-directives'","import type { PreserveDirectivesOptions } from 'rollup-preserve-directives'","import type { PluginMeta } from 'rollup-preserve-directives'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import preserveDirectives from 'rollup-preserve-directives';\n\nexport default {\n  input: './src/index.js',\n  output: {\n    file: './dist/index.js',\n    format: 'cjs',\n  },\n  plugins: [\n    preserveDirectives(),\n  ],\n};","lang":"typescript","description":"Basic rollup.config.js configuration showing how to use the plugin to preserve shebang and directives.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}