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,
"outDir": "./build",
"rootDir": "./src",
"module": "commonjs",
"module": "es6",
"moduleResolution": "node",
"declaration": true,
"noUnusedLocals": true,
"noUnusedParameters": true,

View File

@ -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",