File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
// @ts -check
3
3
import { build } from 'esbuild'
4
4
import terser from 'terser'
5
- import rollup from 'rollup'
5
+ import { rollup } from 'rollup'
6
6
import path from 'path'
7
7
import fs from 'fs-extra'
8
8
import ts from 'typescript'
@@ -256,7 +256,7 @@ async function buildUMD(
256
256
) {
257
257
for ( let umdExtension of [ 'umd' , 'umd.min' ] ) {
258
258
const input = path . join ( outputPath , `${ prefix } .${ umdExtension } .js` )
259
- const instance = await rollup . rollup ( {
259
+ const instance = await rollup ( {
260
260
input : [ input ] ,
261
261
onwarn ( warning , warn ) {
262
262
if ( warning . code === 'THIS_IS_UNDEFINED' ) return
@@ -272,6 +272,7 @@ async function buildUMD(
272
272
// These packages have specific global names from their UMD bundles
273
273
react : 'React' ,
274
274
'react-redux' : 'ReactRedux' ,
275
+ '@reduxjs/toolkit' : 'RTK' ,
275
276
} ,
276
277
} )
277
278
}
You can’t perform that action at this time.
0 commit comments