Skip to content

Commit

Permalink
Update vite dependency optimization options to resolve an issue creat…
Browse files Browse the repository at this point in the history
…ed by GitHub Action workflow's build
  • Loading branch information
courtneymyers committed Oct 5, 2023
1 parent b812b53 commit 859c94b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ export default ({ mode }) => {
},
},
},
/*
NOTE:
The following is required to avoid a bug with a GitHub Action workflow
including `regenerator-runtime` in the build as an external dependency.
For reference, the GitHub Action workflow's log message stated:
"regenerator-runtime/runtime.js" is imported by "regenerator-runtime/runtime.js?commonjs-external",
but could not be resolved – treating it as an external dependency.
*/
optimizeDeps: {
exclude: ["regenerator-runtime"],
},
define: {
"process.env": {},
},
Expand Down

0 comments on commit 859c94b

Please sign in to comment.