1 Star 0 Fork 17

tangqiang/mini-vue

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
rollup.config.js 980 Bytes
一键复制 编辑 原始数据 按行查看 历史
import typescript from "@rollup/plugin-typescript";
import sourceMaps from "rollup-plugin-sourcemaps";
import resolve from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";
import replace from "@rollup/plugin-replace";
export default {
input:"./packages/vue/src/index.ts",
plugins: [
replace({
"process.env.NODE_ENV": JSON.stringify("development"),
"process.env.VUE_ENV": JSON.stringify("browser"),
"process.env.LANGUAGE": JSON.stringify(process.env.LANGUAGE),
}),
resolve(),
commonjs(),
typescript(),
sourceMaps(),
],
output: [
{
format: "cjs",
file: "./packages/vue/dist/mini-vue.cjs.js",
sourcemap: true,
},
{
name: "vue",
format: "es",
file: "./packages/vue/dist/mini-vue.esm-bundler.js",
sourcemap: true,
},
],
onwarn: (msg, warn) => {
// 忽略 Circular 的错误
if (!/Circular/.test(msg)) {
warn(msg);
}
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/tangqiangitee/mini-vue.git
[email protected]:tangqiangitee/mini-vue.git
tangqiangitee
mini-vue
mini-vue
master

搜索帮助