1
0
Fork 0

Added constructors to shorthand

This commit is contained in:
Joost De Cock 2018-07-26 23:31:29 +02:00
parent e792cf61ff
commit 62c35fe19d
3 changed files with 14 additions and 9 deletions

View file

@ -1,6 +1,7 @@
import { terser } from "rollup-plugin-terser";
import babel from "rollup-plugin-babel";
import resolve from "rollup-plugin-node-resolve";
import commonjs from "rollup-plugin-commonjs";
import json from "rollup-plugin-json";
import { name, version, description, author, license } from "./package.json";
@ -11,13 +12,14 @@ export default {
browser: true
}),
json(),
commonjs(),
babel({
exclude: "node_modules/**"
}),
terser({
output: {
preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
}
})
//terser({
// output: {
// preamble: `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
// }
//})
]
};