Skip to content

Commit

Permalink
fix(lavamoat): update for ESM support in policy gen
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Feb 28, 2024
1 parent c2c37e2 commit 612b9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/node/src/parseForPolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ function parseModule(moduleSrc, filename = '<unknown file>') {
// transformFromAstAsync
ast = parse(moduleSrc, {
// esm support
sourceType: 'module',
sourceType: 'unambiguous',
// someone must have been doing this
allowReturnOutsideFunction: true,
// plugins: [
Expand Down

0 comments on commit 612b9f9

Please sign in to comment.