build: remove useless source-map-loader to speedup webpack (#4910)

This commit is contained in:
LongYinan
2023-11-20 10:52:28 +08:00
committed by 李华桥
parent 7f09652cca
commit 34c5e7d83d

View File

@@ -22,7 +22,7 @@ import { WebpackS3Plugin, gitShortHash } from './s3-plugin.js';
const IN_CI = !!process.env.CI;
export const rootPath = fileURLToPath(new URL('..', import.meta.url));
export const rootPath = join(fileURLToPath(import.meta.url), '..', '..');
const workspaceRoot = join(rootPath, '..', '..', '..');
const require = createRequire(rootPath);
@@ -228,17 +228,6 @@ export const createConfiguration: (
rules: [
{
test: /\.m?js?$/,
enforce: 'pre',
use: [
{
loader: require.resolve('source-map-loader'),
options: {
filterSourceMappingUrl: (_url: string) => {
return false;
},
},
},
],
resolve: {
fullySpecified: false,
},