use same esbuild in webpack

This commit is contained in:
Sidharth Vinod 2022-09-02 00:48:34 +05:30
parent f1fa91a51c
commit 04f18630f3
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import path from 'path';
// const esbuild = require('esbuild');
const esbuild = require('esbuild');
const { ESBuildMinifyPlugin } = require('esbuild-loader');
export const resolveRoot = (...relativePath) => path.resolve(__dirname, '..', ...relativePath);
@ -39,7 +39,7 @@ export default {
use: {
loader: 'esbuild-loader',
options: {
// implementation: esbuild,
implementation: esbuild,
target: 'es2015',
},
},