mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
refactor: remove esm module (#1077)
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user