From d8cdf9ffbfaaad075397729f3e27c6e561deb1fa Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Sun, 17 Nov 2024 12:46:35 +0530 Subject: [PATCH] fix: update rspack config --- packages/nocodb/docker/rspack.config.js | 4 +++- packages/nocodb/rspack.cli.config.js | 4 +++- packages/nocodb/rspack.config.js | 4 +++- packages/nocodb/rspack.local.config.js | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/packages/nocodb/docker/rspack.config.js b/packages/nocodb/docker/rspack.config.js index 7461b14b3c..2e7691aad1 100644 --- a/packages/nocodb/docker/rspack.config.js +++ b/packages/nocodb/docker/rspack.config.js @@ -62,7 +62,9 @@ module.exports = { ], nodeEnv: false, }, - externals: [nodeExternals()], + externals: [nodeExternals({ + allowlist: ['nocodb-sdk'] + })], plugins: [ new rspack.EnvironmentPlugin({ EE: true, diff --git a/packages/nocodb/rspack.cli.config.js b/packages/nocodb/rspack.cli.config.js index 381e9e978a..3753348b15 100644 --- a/packages/nocodb/rspack.cli.config.js +++ b/packages/nocodb/rspack.cli.config.js @@ -32,7 +32,9 @@ module.exports = { ], nodeEnv: false, }, - externals: [nodeExternals()], + externals: [nodeExternals({ + allowlist: ['nocodb-sdk'] + })], resolve: { extensions: ['.tsx', '.ts', '.js', '.json'], alias: resolveTsAliases(path.resolve('tsconfig.json')), diff --git a/packages/nocodb/rspack.config.js b/packages/nocodb/rspack.config.js index 66b6e8879f..953b829a79 100644 --- a/packages/nocodb/rspack.config.js +++ b/packages/nocodb/rspack.config.js @@ -53,7 +53,9 @@ module.exports = { ], nodeEnv: false, }, - externals: [nodeExternals()], + externals: [nodeExternals({ + allowlist: ['nocodb-sdk'] + })], resolve: { extensions: ['.tsx', '.ts', '.js', '.json'], alias: resolveTsAliases(path.resolve('tsconfig.json')), diff --git a/packages/nocodb/rspack.local.config.js b/packages/nocodb/rspack.local.config.js index 1049e7648f..d02319fac2 100644 --- a/packages/nocodb/rspack.local.config.js +++ b/packages/nocodb/rspack.local.config.js @@ -54,7 +54,9 @@ module.exports = { ], nodeEnv: false, }, - externals: [nodeExternals()], + externals: [nodeExternals({ + allowlist: ['nocodb-sdk'] + })], resolve: { extensions: ['.tsx', '.ts', '.js', '.json', '.node'], alias: resolveTsAliases(path.resolve('tsconfig.json')),