Change module to ES6
This commit is contained in:
@ -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,
|
||||||
|
@ -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",
|
||||||
|
Reference in New Issue
Block a user