webpack 5

This commit is contained in:
Eugene Pankov
2019-11-25 12:20:41 +01:00
parent dec575d7a4
commit 18aa78fa2e
8 changed files with 258 additions and 731 deletions

View File

@@ -4,7 +4,7 @@ module.exports = {
target: 'node',
entry: 'src/index.ts',
context: __dirname,
devtool: 'cheap-module-eval-source-map',
devtool: 'eval-cheap-module-source-map',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'index.js',
@@ -26,7 +26,7 @@ module.exports = {
test: /\.ts$/,
use: {
loader: 'awesome-typescript-loader',
query: {
options: {
configFileName: path.resolve(__dirname, 'tsconfig.json'),
typeRoots: [
path.resolve(__dirname, 'node_modules/@types'),