Skip to content

Commit

Permalink
Fix issue since introduced when dependabot updated vm2. New vm2 versi…
Browse files Browse the repository at this point in the history
…on included 2 dependencies which need to be copied into build
  • Loading branch information
chrismaltby committed May 28, 2024
1 parent ac2404e commit f18a656
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions webpack.main.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ const mainPlugins = [
to: "node_modules/vm2",
info: { minimized: true },
},
{
from: "node_modules/acorn",
to: "node_modules/acorn",
},
{
from: "node_modules/acorn-walk",
to: "node_modules/acorn-walk",
},
],
}),
];
Expand Down Expand Up @@ -69,5 +77,7 @@ module.exports = {
externals: {
vm2: "vm2",
"about-window": "about-window",
acorn: "acorn",
"acorn-walk": "acorn-walk",
},
};

0 comments on commit f18a656

Please sign in to comment.