Skip to content

Commit

Permalink
esbuild 0.14.5
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Dec 16, 2021
1 parent b82618a commit 2c366de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sinclair/hammer",
"version": "0.16.0",
"version": "0.16.1",
"description": "Build Tool for Browser and Node Applications",
"author": "sinclairzx81",
"keywords": [
Expand Down
2 changes: 2 additions & 0 deletions src/evaluate/compile/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ export function compile(scriptPath: string): CompileResult {
const dirname = path.dirname(filename)
const result = buildSync({
entryPoints: [scriptPath],
external: ['esbuild'],
platform: 'node',
target: 'esnext',
bundle: true,
write: false,
outdir: 'out',

})
const uint8 = result.outputFiles[0].contents
const code = Buffer.from(uint8).toString()
Expand Down

0 comments on commit 2c366de

Please sign in to comment.