File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 55
55
"@babel/preset-typescript" : " ^7.18.6" ,
56
56
"@rollup/plugin-babel" : " ^6.0.3" ,
57
57
"@rollup/plugin-replace" : " ^5.0.1" ,
58
+ "@rollup/plugin-terser" : " ^0.2.0" ,
58
59
"@rollup/plugin-typescript" : " ^10.0.1" ,
59
60
"@storybook/addon-storysource" : " ^6.5.14" ,
60
61
"@storybook/addons" : " ^6.5.14" ,
96
97
"react-window" : " ^1.8.8" ,
97
98
"rimraf" : " ^3.0.2" ,
98
99
"rollup" : " ^3.6.0" ,
99
- "rollup-plugin-terser" : " ^7.0.2" ,
100
100
"styled-components" : " ^5.3.6" ,
101
- "typescript" : " ^4.9.3 " ,
101
+ "typescript" : " ^4.9.4 " ,
102
102
"webpack" : " ^5.75.0"
103
103
},
104
104
"peerDependencies" : {
109
109
},
110
110
"scripts" : {
111
111
"clean-build" : " npm-run-all clean build" ,
112
- "build" : " tsc --outDir dist --declarationDir dist --declaration true --emitDeclarationOnly true && rollup -c" ,
112
+ "build" : " tsc --outDir dist --declarationDir dist --declaration true --emitDeclarationOnly true && rollup --bundleConfigAsCjs - c" ,
113
113
"build-watch" : " rollup -c -w" ,
114
114
"clean" : " rimraf dist" ,
115
115
"typecheck" : " tsc -p --noEmit" ,
Original file line number Diff line number Diff line change 1
1
import path from 'path' ;
2
2
import babel from '@rollup/plugin-babel' ;
3
+ import terser from '@rollup/plugin-terser' ;
3
4
import replace from '@rollup/plugin-replace' ;
4
- import { terser } from 'rollup-plugin-terser' ;
5
5
import { DEFAULT_EXTENSIONS } from '@babel/core' ;
6
6
import typescript from '@rollup/plugin-typescript' ;
7
- import { createRequire } from 'node:module' ;
8
-
9
- const require = createRequire ( import . meta. url ) ;
10
- const pkg = require ( './package.json' ) ;
7
+ import pkg from './package.json' assert { type : 'json ' } ;
11
8
12
9
const globals = {
13
10
'react' : 'React' ,
You can’t perform that action at this time.
0 commit comments