mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-23 04:04:27 +08:00
fix: update webpack config
This commit is contained in:
@@ -24,6 +24,7 @@ const nextConfig = {
|
|||||||
process.env.LOCAL_BLOCK_SUITE &&
|
process.env.LOCAL_BLOCK_SUITE &&
|
||||||
path.isAbsolute(process.env.LOCAL_BLOCK_SUITE)
|
path.isAbsolute(process.env.LOCAL_BLOCK_SUITE)
|
||||||
) {
|
) {
|
||||||
|
config.cache.buildDependencies.config.push(path.resolve(__dirname, '.env.local'))
|
||||||
config.resolve.alias['yjs'] = require.resolve('yjs');
|
config.resolve.alias['yjs'] = require.resolve('yjs');
|
||||||
config.resolve.extensionAlias = {
|
config.resolve.extensionAlias = {
|
||||||
'.js': ['.js', '.ts', '.tsx'],
|
'.js': ['.js', '.ts', '.tsx'],
|
||||||
|
|||||||
Reference in New Issue
Block a user