Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

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

LongYinan34c5e7d83dbd
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,
},