@@ -33,11 +33,8 @@ export default defineConfig([
3333 typescript ( { useTsconfigDeclarationDir : true } ) ,
3434 babel ( {
3535 extensions,
36- plugins : [
37- [ '@babel/plugin-transform-runtime' , { version : babelRuntimeVersion } ] ,
38- [ './scripts/mangleErrors.js' , { minify : false } ]
39- ] ,
40- babelHelpers : 'runtime'
36+ plugins : [ [ './scripts/mangleErrors.js' , { minify : false } ] ] ,
37+ babelHelpers : 'bundled'
4138 } )
4239 ]
4340 } ,
@@ -54,14 +51,8 @@ export default defineConfig([
5451 typescript ( { tsconfigOverride : noDeclarationFiles } ) ,
5552 babel ( {
5653 extensions,
57- plugins : [
58- [
59- '@babel/plugin-transform-runtime' ,
60- { version : babelRuntimeVersion , useESModules : true }
61- ] ,
62- [ './scripts/mangleErrors.js' , { minify : false } ]
63- ] ,
64- babelHelpers : 'runtime'
54+ plugins : [ [ './scripts/mangleErrors.js' , { minify : false } ] ] ,
55+ babelHelpers : 'bundled'
6556 } )
6657 ]
6758 } ,
@@ -94,67 +85,5 @@ export default defineConfig([
9485 }
9586 } )
9687 ]
97- } ,
98-
99- // UMD Development
100- {
101- input : 'src/index.ts' ,
102- output : {
103- file : 'dist/redux.js' ,
104- format : 'umd' ,
105- name : 'Redux' ,
106- indent : false
107- } ,
108- plugins : [
109- nodeResolve ( {
110- extensions
111- } ) ,
112- typescript ( { tsconfigOverride : noDeclarationFiles } ) ,
113- babel ( {
114- extensions,
115- exclude : 'node_modules/**' ,
116- plugins : [ [ './scripts/mangleErrors.js' , { minify : false } ] ] ,
117- babelHelpers : 'bundled'
118- } ) ,
119- replace ( {
120- preventAssignment : true ,
121- 'process.env.NODE_ENV' : JSON . stringify ( 'development' )
122- } )
123- ]
124- } ,
125-
126- // UMD Production
127- {
128- input : 'src/index.ts' ,
129- output : {
130- file : 'dist/redux.min.js' ,
131- format : 'umd' ,
132- name : 'Redux' ,
133- indent : false
134- } ,
135- plugins : [
136- nodeResolve ( {
137- extensions
138- } ) ,
139- typescript ( { tsconfigOverride : noDeclarationFiles } ) ,
140- babel ( {
141- extensions,
142- exclude : 'node_modules/**' ,
143- plugins : [ [ './scripts/mangleErrors.js' , { minify : true } ] ] ,
144- skipPreflightCheck : true ,
145- babelHelpers : 'bundled'
146- } ) ,
147- replace ( {
148- preventAssignment : true ,
149- 'process.env.NODE_ENV' : JSON . stringify ( 'production' )
150- } ) ,
151- terser ( {
152- compress : {
153- pure_getters : true ,
154- unsafe : true ,
155- unsafe_comps : true
156- }
157- } )
158- ]
15988 }
16089] )
0 commit comments