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

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