mirror of
https://github.com/tenrok/vue-tribute.git
synced 2026-06-12 02:52:26 +03:00
17 lines
331 B
JavaScript
17 lines
331 B
JavaScript
import { rollup } from "rollup"
|
|
import babel from "rollup-plugin-babel"
|
|
import vue from "rollup-plugin-vue";
|
|
|
|
const env = process.env.BUILD_ENV
|
|
const dest = env === "cjs" ? "index.js" : "index.umd.js"
|
|
|
|
export default {
|
|
entry: "./src/index.vue",
|
|
dest,
|
|
plugins: [
|
|
vue()
|
|
],
|
|
format: env,
|
|
moduleName: "VueProseMirror"
|
|
}
|