rollup-swc-preserve-directives
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

rollup-swc-preserve-directives

A rollup plugin helps preserving shebang and string directives in your code.

Install

npm install rollup-swc-preserve-directives

Usage

import swcPreserveDirectives from 'rollup-swc-preserve-directives';

export default {
  input: './src/index.js',
  output: {
    file: './dist/index.js',
    format: 'cjs'
  },
  plugins: [
    swcPreserveDirectives()
  ]
}

License

MIT

Package Sidebar

Install

npm i rollup-swc-preserve-directives

Weekly Downloads

5,703

Version

0.7.0

License

MIT

Unpacked Size

16.1 kB

Total Files

7

Last publish

Collaborators

  • huozhi