Fix monorepo build

This commit is contained in:
schmelczerandras 2020-10-17 17:24:24 +02:00
parent 2d67b7d939
commit fd80a299b6
14 changed files with 99 additions and 83 deletions

View file

@ -1,7 +1,6 @@
const path = require('path');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const nodeExternals = require('webpack-node-externals');
const { ESBuildPlugin } = require('esbuild-loader');
const TerserJSPlugin = require('terser-webpack-plugin');
const webpack = require('webpack');
@ -43,7 +42,6 @@ module.exports = (env, argv) => ({
},
plugins: [
new webpack.BannerPlugin({ banner: '#!/usr/bin/env node', raw: true }),
new ESBuildPlugin(),
new CleanWebpackPlugin({
protectWebpackAssets: false,
cleanAfterEveryBuildPatterns: [],
@ -63,10 +61,8 @@ module.exports = (env, argv) => ({
},
{
test: /\.ts$/,
loader: 'esbuild-loader',
options: {
loader: 'ts',
target: 'es2015',
use: {
loader: 'ts-loader',
},
exclude: /node_modules/,
},