File tree Expand file tree Collapse file tree 3 files changed +781
-1111
lines changed
Expand file tree Collapse file tree 3 files changed +781
-1111
lines changed Original file line number Diff line number Diff line change 3737 "@rollup/plugin-json" : " ^6.1.0" ,
3838 "@rollup/plugin-node-resolve" : " ^15.2.3" ,
3939 "@rollup/plugin-replace" : " ^6.0.1" ,
40+ "@rollup/plugin-terser" : " ^0.4.4" ,
4041 "acorn" : " ^7.1.0" ,
4142 "acorn-jsx" : " ^5.2.0" ,
4243 "eslint" : " ^8.17.0" ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import commonjs from "@rollup/plugin-commonjs";
66// import babelRuntime from "@rollup/plugin-transform-runtime"
77import json from "@rollup/plugin-json" ;
88import replace from "@rollup/plugin-replace" ;
9+ import terser from "@rollup/plugin-terser" ;
910import { readFileSync } from "fs" ;
1011
1112const pkg = JSON . parse (
@@ -21,6 +22,13 @@ export default {
2122 name : "dcmjs" ,
2223 sourcemap : true
2324 } ,
25+ {
26+ file : pkg . main . replace ( / \. j s $ / , ".min.js" ) ,
27+ format : "umd" ,
28+ name : "dcmjs" ,
29+ sourcemap : true ,
30+ plugins : [ terser ( ) ]
31+ } ,
2432 {
2533 file : pkg . module ,
2634 format : "es" ,
You can’t perform that action at this time.
0 commit comments