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')),