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 36
36
"scripts" : {
37
37
"build" : " rimraf ./dist && run-p build:rollup build:types" ,
38
38
"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" ,
45
41
"build:types" : " tsc --project types.tsconfig.json" ,
46
42
"build:types:watch" : " tsc --project types.tsconfig.json --watch --preserveWatchOutput" ,
47
43
"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";
3
3
import packageJson from "./package.json" ;
4
4
import modulePackage from "module" ;
5
5
6
- const input = [ "src/index.ts" ] ;
6
+ const input = [ "src/index.ts" , "src/webpack5.ts" ] ;
7
7
8
8
const extensions = [ ".ts" ] ;
9
9
@@ -33,13 +33,14 @@ export default {
33
33
] ,
34
34
output : [
35
35
{
36
- file : packageJson . module ,
36
+ dir : "./dist/esm" ,
37
37
format : "esm" ,
38
38
exports : "named" ,
39
39
sourcemap : true ,
40
+ entryFileNames : "[name].mjs" ,
40
41
} ,
41
42
{
42
- file : packageJson . main ,
43
+ dir : "./dist/cjs" ,
43
44
format : "cjs" ,
44
45
exports : "named" ,
45
46
sourcemap : true ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments