diff --git a/tsconfig.json b/tsconfig.json index 277a2eb2dd..1105b2e0ef 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,8 @@ "preserveConstEnums": true, "outDir": "./build", "rootDir": "./src", - "module": "commonjs", + "module": "es6", + "moduleResolution": "node", "declaration": true, "noUnusedLocals": true, "noUnusedParameters": true, diff --git a/webpack.config.ts b/webpack.config.ts index 034e19286f..1c7d3dcb22 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -1,7 +1,7 @@ -import * as path from "path"; -import { Configuration, ProvidePlugin } from "webpack"; +const path = require("path"); +const { ProvidePlugin } = require("webpack"); -const configuration: Configuration = { +const configuration = { mode: "production", entry: "./src/index.ts",