Questions tagged [rollup-plugin-license]

rollup-plugin-license adds the "license" banner. Banner could be text file or comment block. Banner could include third party tools license information.

https://github.com/mjeanroy/rollup-plugin-license

2 questions
2
votes
1 answer

why import { version} from './package.json' in rollup.config file prompts version is not defined

I have these two ways to import version from my package.json file. And it prompts error says Error transforming bundle with 'rollup-plugin-license' plugin: version is not defined. Please see my following code. import pkg from…
Blake
  • 7,367
  • 19
  • 54
  • 80
0
votes
0 answers

SyntaxError: The keyword 'package' is reserved @rollup/plugin-commonjs

I am trying to build my code but keep getting this error [!] (plugin commonjs--resolver) SyntaxError: The keyword 'package' is reserved (4:6) in…