31 lines
808 B
JavaScript
31 lines
808 B
JavaScript
![]() |
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 path from "path";
|
||
|
import { name, version, description, author, license } from "./package.json";
|
||
|
|
||
|
export default {
|
||
|
input: "src/index.js",
|
||
|
plugins: [
|
||
|
resolve({
|
||
|
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 */`
|
||
|
// }
|
||
|
//})
|
||
|
],
|
||
|
external: [
|
||
|
"freesewing",
|
||
|
path.resolve("./node_modules/freesewing/dist/index.mjs")
|
||
|
]
|
||
|
};
|