diff options
Diffstat (limited to 'patches/remove-unsupported-syntax.patch')
-rw-r--r-- | patches/remove-unsupported-syntax.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/patches/remove-unsupported-syntax.patch b/patches/remove-unsupported-syntax.patch new file mode 100644 index 0000000..bf1b359 --- /dev/null +++ b/patches/remove-unsupported-syntax.patch @@ -0,0 +1,32 @@ +This syntax is not supported in packaged rollup/node yet. +Minified file is generated by uglifyjs.terser command line. + +--- a/rollup.config.js ++++ b/rollup.config.js +@@ -1,4 +1,3 @@ +-import {terser} from "rollup-plugin-terser"; + import * as meta from "./package.json"; + + const config = { +@@ -17,20 +16,5 @@ + }; + + export default [ +- config, +- { +- ...config, +- output: { +- ...config.output, +- file: `dist/${meta.name}.min.js` +- }, +- plugins: [ +- ...config.plugins, +- terser({ +- output: { +- preamble: config.output.banner +- } +- }) +- ] +- } ++ config + ]; |