From 645a650db72a4a13f29340da74b321b236a3fb6f Mon Sep 17 00:00:00 2001 From: David Arayan Date: Wed, 14 Feb 2024 17:15:39 +1100 Subject: [PATCH] - Added `dns` as an external module to webpack --- sdk-core/src/generator/generators/project.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk-core/src/generator/generators/project.ts b/sdk-core/src/generator/generators/project.ts index 3014020..adec6ef 100644 --- a/sdk-core/src/generator/generators/project.ts +++ b/sdk-core/src/generator/generators/project.ts @@ -83,6 +83,9 @@ export class Project { output += `\t\t filename: 'bundle.min.js',\n`; output += `\t\t path: path.resolve(__dirname, './build')\n`; output += `\t },\n`; + output += `\t externals: [\n`; + output += `\t\t 'dns'\n`; + output += `\t ],\n`; output += `\t plugins: [new CleanWebpackPlugin()],\n`; output += `\t optimization: {\n`; output += `\t\t minimize: true\n`;