mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
refactor: remove esm module (#1077)
This commit is contained in:
@@ -7,3 +7,5 @@ NEXT_PUBLIC_FIREBASE_APP_ID=
|
||||
NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID=
|
||||
# absolute path to the block suite directory
|
||||
LOCAL_BLOCK_SUITE=
|
||||
# see next.config.js
|
||||
NODE_API_SERVER=
|
||||
|
||||
@@ -48,7 +48,12 @@ const nextConfig = {
|
||||
COMMIT_HASH: getCommitHash(),
|
||||
EDITOR_VERSION,
|
||||
},
|
||||
transpilePackages: ['@affine/component', '@affine/i18n'],
|
||||
transpilePackages: [
|
||||
'@affine/component',
|
||||
'@affine/i18n',
|
||||
'@affine/datacenter',
|
||||
'@toeverything/pathfinder-logger',
|
||||
],
|
||||
webpack: config => {
|
||||
config.experiments = { ...config.experiments, topLevelAwait: true };
|
||||
config.resolve.alias['yjs'] = require.resolve('yjs');
|
||||
|
||||
@@ -19,8 +19,10 @@
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": ["src/*"],
|
||||
"@affine/component": ["../../packages/component/src/index"],
|
||||
"@affine/i18n": ["../../packages/i18n/src/index"]
|
||||
"@affine/component": ["../../packages/component"],
|
||||
"@affine/i18n": ["../../packages/i18n"],
|
||||
"@affine/datacenter": ["../../packages/data-center"],
|
||||
"@toeverything/pathfinder-logger": ["../../packages/logger"]
|
||||
}
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
|
||||
|
||||
Reference in New Issue
Block a user