From b22f565dd00652dd051947d83a420264b076aba0 Mon Sep 17 00:00:00 2001 From: Dolan Miu Date: Wed, 16 Jan 2019 13:34:32 +0000 Subject: [PATCH] Use a typescript webpack config --- tsconfig.json | 3 ++- webpack.config.js => webpack.config.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) rename webpack.config.js => webpack.config.ts (94%) diff --git a/tsconfig.json b/tsconfig.json index 59d86f2400..a2d4c199ef 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,7 +23,8 @@ "tests", "**/_*", "demo", - "scripts" + "scripts", + "webpack.config.ts" ], "typedocOptions": { "mode": "file", diff --git a/webpack.config.js b/webpack.config.ts similarity index 94% rename from webpack.config.js rename to webpack.config.ts index 40ec0b0d23..ce1455ac50 100644 --- a/webpack.config.js +++ b/webpack.config.ts @@ -1,4 +1,4 @@ -const path = require("path"); +import * as path from "path"; module.exports = { entry: "./src/index.ts", @@ -27,7 +27,7 @@ module.exports = { loader: "istanbul-instrumenter-loader", enforce: "post", exclude: [/node_modules/], - } + }, ], },