File tree Expand file tree Collapse file tree 3 files changed +6
-57
lines changed
Expand file tree Collapse file tree 3 files changed +6
-57
lines changed Original file line number Diff line number Diff line change 3636 "scripts" : {
3737 "build" : " rimraf ./dist && run-p build:rollup build:types" ,
3838 "build:watch" : " run-p build:rollup:watch build:types:watch" ,
39- "build:rollup" : " run-p build:rollup:default build:rollup:webpack5" ,
40- "build:rollup:default" : " rollup --config rollup.config.default.js" ,
41- "build:rollup:webpack5" : " rollup --config rollup.config.webpack5.js" ,
42- "build:rollup:watch" : " run-p build:rollup:default:watch build:rollup:webpack5:watch" ,
43- "build:rollup:default:watch" : " rollup --config rollup.config.default.js --watch --no-watch.clearScreen" ,
44- "build:rollup:webpack5:watch" : " rollup --config rollup.config.webpack5.js --watch --no-watch.clearScreen" ,
39+ "build:rollup" : " rollup --config rollup.config.js" ,
40+ "build:rollup:watch" : " rollup --config rollup.config.js --watch --no-watch.clearScreen" ,
4541 "build:types" : " tsc --project types.tsconfig.json" ,
4642 "build:types:watch" : " tsc --project types.tsconfig.json --watch --preserveWatchOutput" ,
4743 "check:types" : " run-p check:types:src check:types:test" ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import babel from "@rollup/plugin-babel";
33import packageJson from "./package.json" ;
44import modulePackage from "module" ;
55
6- const input = [ "src/index.ts" ] ;
6+ const input = [ "src/index.ts" , "src/webpack5.ts" ] ;
77
88const extensions = [ ".ts" ] ;
99
@@ -33,13 +33,14 @@ export default {
3333 ] ,
3434 output : [
3535 {
36- file : packageJson . module ,
36+ dir : "./dist/esm" ,
3737 format : "esm" ,
3838 exports : "named" ,
3939 sourcemap : true ,
40+ entryFileNames : "[name].mjs" ,
4041 } ,
4142 {
42- file : packageJson . main ,
43+ dir : "./dist/cjs" ,
4344 format : "cjs" ,
4445 exports : "named" ,
4546 sourcemap : true ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments