File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,34 @@ const esm = {
6363 // sourcemap: true,
6464} satisfies Options
6565
66+ const esmBrowser = {
67+ ...commonOptions ,
68+ outputOptions : {
69+ ...commonOptions . outputOptions ,
70+ dir : undefined , // must be unset with file
71+ file : 'dist/vue-router.esm-browser.js' ,
72+ } ,
73+ define : {
74+ ...commonOptions . define ,
75+ __DEV__ : 'true' ,
76+ __FEATURE_PROD_DEVTOOLS__ : 'true' ,
77+ } ,
78+ } satisfies Options
79+
80+ const esmBrowserProd = {
81+ ...esmBrowser ,
82+ minify : true ,
83+ outputOptions : {
84+ ...esmBrowser . outputOptions ,
85+ file : 'dist/vue-router.esm-browser.prod.js' ,
86+ } ,
87+ define : {
88+ ...esmBrowser . define ,
89+ __DEV__ : 'false' ,
90+ __FEATURE_PROD_DEVTOOLS__ : 'false' ,
91+ } ,
92+ } satisfies Options
93+
6694const cjs = {
6795 ...commonOptions ,
6896 format : 'cjs' ,
@@ -122,6 +150,8 @@ const iifeProd = {
122150export default [
123151 //
124152 esm ,
153+ esmBrowser ,
154+ esmBrowserProd ,
125155 cjs ,
126156 cjsProd ,
127157 iife ,
You can’t perform that action at this time.
0 commit comments