Mercurial > code > home > repos > streamed-graph
changeset 7:daf08d794660
fix configs so relative imports work
author | drewp@bigasterisk.com |
---|---|
date | Wed, 04 Dec 2019 23:44:29 -0800 |
parents | a5bc13dcce41 |
children | 6fefd287aff9 |
files | tsconfig.json webpack-dev.config.ts |
diffstat | 2 files changed, 21 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- 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", + } }
--- 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,