diff --git a/packages/frontend/core/.webpack/config.ts b/packages/frontend/core/.webpack/config.ts index 47f29871bf..e15188558d 100644 --- a/packages/frontend/core/.webpack/config.ts +++ b/packages/frontend/core/.webpack/config.ts @@ -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, },