mirror of
https://github.com/tenrok/vue-tribute.git
synced 2026-06-10 00:12:27 +03:00
18 lines
337 B
JavaScript
18 lines
337 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",
|
|
plugins: [
|
|
babel({
|
|
exclude: "node_modules/**"
|
|
})
|
|
],
|
|
dest,
|
|
format: env,
|
|
moduleName: "VueInputAutosize"
|
|
}
|