Skip to content

Commit

Permalink
- Added dns as an external module to webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidArayan committed Feb 14, 2024
1 parent d814f68 commit 645a650
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk-core/src/generator/generators/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down

0 comments on commit 645a650

Please sign in to comment.