Skip to content

Commit

Permalink
chore(loader): [load] instruct esbuild to target current node version
Browse files Browse the repository at this point in the history
Signed-off-by: Lexus Drumgold <unicornware@flexdevelopment.llc>
  • Loading branch information
unicornware committed Feb 12, 2023
1 parent 0a8701e commit 1b99d7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ export const load = async (url, context) => {
minify: false,
sourcefile: fileURLToPath(url),
sourcemap: 'inline',
target: `node${process.versions.node}`,
tsconfigRaw: { compilerOptions }
})

Expand Down
1 change: 1 addition & 0 deletions loader.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const load = async (url, context) => {
minify: false,
sourcefile: fileURLToPath(url),
sourcemap: 'inline',
target: `node${process.versions.node}`,
tsconfigRaw: { compilerOptions }
})

Expand Down

0 comments on commit 1b99d7c

Please sign in to comment.