-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathrollup.config.js
44 lines (43 loc) · 1.01 KB
/
rollup.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import typescript from "rollup-plugin-typescript2"
const outDir = "lib";
const libName = "nuxt-property-decorator";
export default {
input: "./src/nuxt-property-decorator.ts",
plugins: [
typescript(),
],
output: [
{
format: "umd",
name: "NuxtPropertyDecorator",
file: `${outDir}/${libName}.umd.js`,
globals: {
vue: "Vue",
"vuex-class": "VuexClass",
"vue-class-component": "VueClassComponent",
"vuex-module-decorators": "VuexModuleDecorators",
"vue-property-decorator": "VuePropertyDecorator",
},
},
{
file: `${outDir}/${libName}.common.js`,
format: "cjs", // amd,cjs,es,iife,umd,system
name: "quranMeta",
sourcemap: true,
},
{
file: `${outDir}/${libName}.esm.js`,
format: "es",
name: "quranMeta",
sourcemap: true,
},
],
external: [
"vue",
"vuex-class",
"vuex-module-decorators",
"vue-property-decorator",
"vue-class-component",
"reflect-metadata",
],
};