# HG changeset patch # User drewp@bigasterisk.com # Date 1575531869 28800 # Node ID daf08d794660c03ba1171895d4929b69d92cccd7 # Parent a5bc13dcce4192fe60bf4632e5faf00ba15b948f fix configs so relative imports work diff -r a5bc13dcce41 -r daf08d794660 tsconfig.json --- a/tsconfig.json Wed Dec 04 01:06:33 2019 -0800 +++ b/tsconfig.json Wed Dec 04 23:44:29 2019 -0800 @@ -1,17 +1,23 @@ { "compilerOptions": { - "module": "commonjs", - "experimentalDecorators": true, - "target": "es6", - "rootDirs": [ - "node_modules", - // "src" - ], + "allowSyntheticDefaultImports": true, + "baseUrl": "./", + "declaration": true, + "emitDecoratorMetadata": true, "esModuleInterop": true, - "allowSyntheticDefaultImports": true - }, - "files": [ - "./src/streamed-graph.ts", - // "./src/streamed_graph_client.ts" - ] + "experimentalDecorators": true, + "incremental": true, + "lib": ["es6", "dom"], + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "rootDirs": ["node_modules"], + "target": "es6", + // "importHelpers": true, + // "removeComments": true, + // "rootDir": ".", + // "sourceMap": true, + // "types": ["node"], + // // "outDir": "../../dist/server-root", + } } diff -r a5bc13dcce41 -r daf08d794660 webpack-dev.config.ts --- a/webpack-dev.config.ts Wed Dec 04 01:06:33 2019 -0800 +++ b/webpack-dev.config.ts Wed Dec 04 23:44:29 2019 -0800 @@ -5,8 +5,6 @@ mode: "development", entry: [ './src/streamed-graph.ts', - // './src/streamed_graph_client.ts', - './src/streamed-graph.css' // doesn't emit anything ], output: { @@ -17,13 +15,13 @@ alias: { 'webpack-plugin-serve/client': './node_modules/webpack-plugin-serve/client.js', }, + extensions: ['.ts', '.js', '.json'] }, module: { rules: [ { test: /\.ts$/, use: 'ts-loader', exclude: /node_modules/ }, { test: /\.css$/i, use: ['file-loader'] }, - ], - + ] }, devServer: { port: 8082,