mirror of
https://github.com/tenrok/vue-tribute.git
synced 2026-06-09 09:22:27 +03:00
18 lines
357 B
JavaScript
18 lines
357 B
JavaScript
import { rollup } from "rollup"
|
|
import babel from "rollup-plugin-babel"
|
|
|
|
const env = process.env.BUILD_ENV
|
|
const dest = env === "cjs" ? "index.js" : "index.umd.js"
|
|
|
|
export default {
|
|
entry: "./src/index.js",
|
|
external: [ "tributejs" ],
|
|
plugins: [ babel() ],
|
|
dest,
|
|
format: env,
|
|
moduleName: "VueTribute",
|
|
globals: {
|
|
tributejs: "Tribute"
|
|
}
|
|
}
|