File tree Expand file tree Collapse file tree 3 files changed +7
-13
lines changed Expand file tree Collapse file tree 3 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 2424 "compile" : " tsc" ,
2525 "postcompile" : " npm run build:cjs" ,
2626 "build:cjs" : " rollup -c" ,
27- "postbuild:cjs" : " node scripts/replace-legacy-export.cjs" ,
2827 "prepare" : " npm run compile"
2928 },
3029 "repository" : {
6564 "serve" : " ^11.3.2" ,
6665 "standardx" : " ^5.0.0" ,
6766 "start-server-and-test" : " ^1.11.2" ,
67+ "ts-transform-default-export" : " ^1.0.2" ,
6868 "typescript" : " ^4.0.0"
6969 },
7070 "files" : [
Original file line number Diff line number Diff line change 11import ts from '@wessberg/rollup-plugin-ts'
2+ import transformDefaultExport from 'ts-transform-default-export'
23
34const output = {
45 format : 'cjs' ,
@@ -12,6 +13,10 @@ export default {
1213 input : './lib/index.ts' ,
1314 output,
1415 plugins : [
15- ts ( { /* options */ } )
16+ ts ( {
17+ transformers : ( { program } ) => ( {
18+ afterDeclarations : transformDefaultExport ( program )
19+ } )
20+ } )
1621 ]
1722}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments