File tree Expand file tree Collapse file tree 4 files changed +45
-2
lines changed Expand file tree Collapse file tree 4 files changed +45
-2
lines changed Original file line number Diff line number Diff line change 11//import { resolve, parse } from "url";
22//import { join } from "path";
33
4- // @ts -ignore
54import { unique } from './misc.ts' ;
65
76export type ItemId = string ;
Original file line number Diff line number Diff line change 1+ import { Client } from './api.ts' ;
2+
3+ const x = new Client ( { } ) ;
4+
5+ export default {
6+ Client,
7+ x
8+ } ;
Original file line number Diff line number Diff line change 2626 "nanoid" : " ^2.1.6" ,
2727 "stack-trace" : " 0.0.10"
2828 },
29- "typings" : " index.d.ts"
29+ "typings" : " index.d.ts" ,
30+ "devDependencies" : {
31+ "ts-loader" : " ^8.0.17" ,
32+ "webpack" : " ^5.24.2" ,
33+ "webpack-cli" : " ^4.5.0"
34+ }
3035}
Original file line number Diff line number Diff line change 1+ const path = require ( 'path' ) ;
2+ const webpack = require ( 'webpack' ) ;
3+
4+ module . exports = {
5+ entry : {
6+ lib : './lib/index.ts'
7+ } ,
8+ //watch: true,
9+ mode : 'development' ,
10+ devtool : 'inline-source-map' ,
11+ module : {
12+ rules : [
13+ {
14+ test : / \. t s x ? $ / ,
15+ use : 'ts-loader' ,
16+ exclude : / n o d e _ m o d u l e s /
17+ }
18+ ]
19+ } ,
20+ resolve : {
21+ extensions : [ '.tsx' , '.ts' , '.js' ]
22+ } ,
23+ target : 'node' ,
24+ output : {
25+ //filename: '[name].[contenthash:8].js',
26+ libraryTarget : 'commonjs2' ,
27+ libraryExport : 'default' ,
28+ publicPath : '/' ,
29+ path : path . resolve ( __dirname , './dist' )
30+ }
31+ } ;
You can’t perform that action at this time.
0 commit comments