File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 6060 "dev" : " webpack --config webpack.dev.config.js --mode development" ,
6161 "build" : " npm run clean && run-p build:*" ,
6262 "ci" : " npm run build && npm run test" ,
63- "build:esm" : " tsc " ,
63+ "build:esm" : " webpack --config webpack.esm.config.js --mode production " ,
6464 "build:umd" : " webpack --config webpack.config.js --mode production" ,
6565 "publish:alpha" : " npm publish --tag alpha" ,
6666 "test" : " jest" ,
Original file line number Diff line number Diff line change 1515 "resolveJsonModule" : true ,
1616 "esModuleInterop" : true ,
1717 "lib" : [" esnext" , " dom" ],
18+ "types" : [],
1819 "experimentalDecorators" : false /* Enables experimental support for ES7 decorators. */ ,
1920 // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
2021 "downlevelIteration" : true ,
Original file line number Diff line number Diff line change 1+ const path = require ( "path" ) ;
2+
3+ module . exports = {
4+ entry : "./src/bundle-entry.ts" ,
5+ experiments : {
6+ outputModule : true ,
7+ } ,
8+ output : {
9+ filename : "index.js" ,
10+ publicPath : "" ,
11+ path : path . resolve ( __dirname , "lib" ) ,
12+ library : {
13+ type : "module" ,
14+ } ,
15+ clean : true ,
16+ } ,
17+ resolve : {
18+ extensions : [ ".ts" , ".js" ] ,
19+ } ,
20+ module : {
21+ rules : [
22+ {
23+ test : / \. t s x ? $ / ,
24+ use : "ts-loader" ,
25+ exclude : / n o d e _ m o d u l e s / ,
26+ } ,
27+ ] ,
28+ } ,
29+ devtool : "source-map" ,
30+ } ;
You can’t perform that action at this time.
0 commit comments