Change module to ES6

This commit is contained in:
Dolan Miu
2021-09-30 15:00:49 +01:00
parent 5a0727f2d9
commit 8d94fa9a78
2 changed files with 5 additions and 4 deletions

View File

@ -7,7 +7,8 @@
"preserveConstEnums": true, "preserveConstEnums": true,
"outDir": "./build", "outDir": "./build",
"rootDir": "./src", "rootDir": "./src",
"module": "commonjs", "module": "es6",
"moduleResolution": "node",
"declaration": true, "declaration": true,
"noUnusedLocals": true, "noUnusedLocals": true,
"noUnusedParameters": true, "noUnusedParameters": true,

View File

@ -1,7 +1,7 @@
import * as path from "path"; const path = require("path");
import { Configuration, ProvidePlugin } from "webpack"; const { ProvidePlugin } = require("webpack");
const configuration: Configuration = { const configuration = {
mode: "production", mode: "production",
entry: "./src/index.ts", entry: "./src/index.ts",