File tree Expand file tree Collapse file tree 1 file changed +48
-50
lines changed Expand file tree Collapse file tree 1 file changed +48
-50
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ import sucrase from "@rollup/plugin-sucrase";
44import buble from "rollup-plugin-buble" ;
55import common from "rollup-plugin-commonjs" ;
66import scss from "rollup-plugin-scss" ;
7- import { terser } from "rollup-plugin-terser" ;
7+ import { terser } from "rollup-plugin-terser" ;
88import vue from "rollup-plugin-vue" ;
99
10- import pkg from "./package.json" assert { type : "json "} ;
10+ import pkg from "./package.json" assert { type : "json " } ;
1111
1212const banner = `/*
1313 * ${ pkg . name }
@@ -19,52 +19,50 @@ const banner = `/*
1919
2020export default {
2121 input : "src/index.js" ,
22- output :
23- [
24- {
25- file : pkg . main ,
26- format : "cjs" ,
27- exports : "named" ,
28- strict : true ,
29- banner,
30- } ,
31- {
32- file : pkg . module ,
33- format : "es" ,
34- exports : "named" ,
35- strict : true ,
36- banner,
37- } ,
38- {
39- file : pkg . umd ,
40- format : "umd" ,
41- exports : "named" ,
42- strict : true ,
43- banner,
44- name : "FloatMenu" ,
45- globals : {
46- vue : "vue" ,
47- } ,
48- } ,
49- ] ,
50- plugins :
51- [
52- scss ( ) ,
53- vue ( ) ,
54- sucrase ( {
55- exclude : [ "node_modules/**" ] ,
56- transforms : [ "typescript" ] ,
57- } ) ,
58- beep ( ) ,
59- common ( ) ,
60- buble ( ) ,
61- resolve ( ) ,
62- terser ( {
63- compress : {
64- drop_console : true ,
65- drop_debugger : true ,
66- } ,
67- } ) ,
68- ] ,
69- external : [ "vue" ] ,
22+ output : [
23+ {
24+ file : pkg . main ,
25+ format : "cjs" ,
26+ exports : "named" ,
27+ strict : true ,
28+ banner,
29+ } ,
30+ {
31+ file : pkg . module ,
32+ format : "es" ,
33+ exports : "named" ,
34+ strict : true ,
35+ banner,
36+ } ,
37+ {
38+ file : pkg . umd ,
39+ format : "umd" ,
40+ exports : "named" ,
41+ strict : true ,
42+ banner,
43+ name : "FloatMenu" ,
44+ globals : {
45+ vue : "vue" ,
46+ } ,
47+ } ,
48+ ] ,
49+ plugins : [
50+ scss ( ) ,
51+ vue ( ) ,
52+ sucrase ( {
53+ exclude : [ "node_modules/**" ] ,
54+ transforms : [ "typescript" ] ,
55+ } ) ,
56+ beep ( ) ,
57+ common ( ) ,
58+ buble ( ) ,
59+ resolve ( ) ,
60+ terser ( {
61+ compress : {
62+ drop_console : true ,
63+ drop_debugger : true ,
64+ } ,
65+ } ) ,
66+ ] ,
67+ external : [ "vue" ] ,
7068} ;
You can’t perform that action at this time.
0 commit comments