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(core): add source-map-loader for blocksuite codes (#6137)

LongYinan7ed86a66e800
diff --git a/packages/frontend/core/.webpack/config.ts b/packages/frontend/core/.webpack/config.ts
index 4432eb69b5..42fb5acace 100644
--- a/packages/frontend/core/.webpack/config.ts
+++ b/packages/frontend/core/.webpack/config.ts
@@ -242,6 +242,12 @@ export const createConfiguration: (
fullySpecified: false,
},
},
+ {
+ test: /\.js$/,
+ enforce: 'pre',
+ include: /@blocksuite/,
+ use: ['source-map-loader'],
+ },
{
oneOf: [
{