Skip to content

Commit

Permalink
Limit esbuild external https imports to jslib's
Browse files Browse the repository at this point in the history
  • Loading branch information
oleiade committed Sep 10, 2024
1 parent 9e400ea commit f259891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const buildOptions = {
external: [
'k6', // Mark the 'k6' package as external
'k6/*', // Mark all submodules of 'k6' as external
"/^https?://" // Regex to mark all HTTP imports as external
"/^https:\\/\\/jslib\\.k6\\.io\\/.*" // Regex to mark all jslib imports as external
],

// By default, no minification is applied
Expand Down

0 comments on commit f259891

Please sign in to comment.