File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 4141 "lint-staged" : " ^10.0.9" ,
4242 "prettier" : " ^2.0.2" ,
4343 "rollup" : " ^1.12.3" ,
44+ "rollup-plugin-commonjs" : " ^10.1.0" ,
4445 "rollup-plugin-node-resolve" : " ^5.0.0" ,
4546 "rollup-plugin-typescript2" : " ^0.21.1" ,
4647 "standard-version" : " ^6.0.1" ,
Original file line number Diff line number Diff line change 11import resolve from 'rollup-plugin-node-resolve' ;
2+ import commonjs from 'rollup-plugin-commonjs' ;
23import typescript from 'rollup-plugin-typescript2' ;
34
45import pkg from './package.json' ;
@@ -8,7 +9,14 @@ const getConfig = (inputFile) => ({
89 ...Object . keys ( pkg . dependencies || { } ) ,
910 ...Object . keys ( pkg . peerDependencies || { } ) ,
1011 ] ,
11- plugins : [ resolve ( ) , typescript ( { useTsconfigDeclarationDir : true } ) ] ,
12+ plugins : [
13+ resolve ( ) ,
14+ commonjs ( ) ,
15+ typescript ( {
16+ useTsconfigDeclarationDir : true ,
17+ rollupCommonJSResolveHack : true ,
18+ } ) ,
19+ ] ,
1220 input : inputFile ,
1321 output : [
1422 {
You can’t perform that action at this time.
0 commit comments