Change module to ES6
This commit is contained in:
@ -7,7 +7,8 @@
|
||||
"preserveConstEnums": true,
|
||||
"outDir": "./build",
|
||||
"rootDir": "./src",
|
||||
"module": "commonjs",
|
||||
"module": "es6",
|
||||
"moduleResolution": "node",
|
||||
"declaration": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
|
@ -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",
|
||||
|
Reference in New Issue
Block a user