1 Star 3 Fork 0

masx200/custom-elements-random-define

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rollup.config.js 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
masx200 提交于 2021-09-22 17:16 +08:00 . 1.0.7
// import babel from "rollup-plugin-babel";
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import { terser } from "rollup-plugin-terser";
import json from "@rollup/plugin-json";
import typescript from "rollup-plugin-ts";
const myterserplugin = terser({
// sourcemap: true,
toplevel: true,
output: {
comments: !1,
ascii_only: !0,
beautify: true,
},
compress: {
toplevel: true,
unused: true,
drop_console: true,
drop_debugger: true,
pure_funcs: ["console.log"],
},
mangle: { properties: false },
});
export default [
{
input: "./src/index.ts",
output: [
{
file: "./dist/index.js",
format: "esm",
sourcemap: true,
},
],
plugins: [
json(),
resolve(),
commonjs(),
typescript(),
terser({
compress: false,
mangle: false,
output: {
comments: !1,
beautify: true,
},
}),
],
},
{
input: "./dist/index.js",
output: [
{
file: "./dist/index.min.js",
format: "esm",
sourcemap: true,
},
],
plugins: [json(), resolve(), commonjs(), myterserplugin],
},
];
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/masx200/custom-elements-random-define.git
git@gitee.com:masx200/custom-elements-random-define.git
masx200
custom-elements-random-define
custom-elements-random-define
master

搜索帮助