Skip to content

Commit b74b4f8

Browse files
committed
Update Rollup UMD output
1 parent 723a985 commit b74b4f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/toolkit/scripts/build.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// @ts-check
33
import { build } from 'esbuild'
44
import terser from 'terser'
5-
import rollup from 'rollup'
5+
import { rollup } from 'rollup'
66
import path from 'path'
77
import fs from 'fs-extra'
88
import ts from 'typescript'
@@ -256,7 +256,7 @@ async function buildUMD(
256256
) {
257257
for (let umdExtension of ['umd', 'umd.min']) {
258258
const input = path.join(outputPath, `${prefix}.${umdExtension}.js`)
259-
const instance = await rollup.rollup({
259+
const instance = await rollup({
260260
input: [input],
261261
onwarn(warning, warn) {
262262
if (warning.code === 'THIS_IS_UNDEFINED') return
@@ -272,6 +272,7 @@ async function buildUMD(
272272
// These packages have specific global names from their UMD bundles
273273
react: 'React',
274274
'react-redux': 'ReactRedux',
275+
'@reduxjs/toolkit': 'RTK',
275276
},
276277
})
277278
}

0 commit comments

Comments
 (0)