refactor: remove esm module (#1077)

This commit is contained in:
Himself65
2023-02-16 20:43:52 -06:00
committed by GitHub
parent 1d0bf58109
commit 6f6921079e
61 changed files with 518 additions and 349 deletions

View File

@@ -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=

View File

@@ -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');

View File

@@ -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"],