-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minimize output size by importing directly
- Loading branch information
Showing
3 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
require('esbuild') | ||
.build({ | ||
(async () => { | ||
let esbuild = require('esbuild'); | ||
|
||
let result = await esbuild.build({ | ||
entryPoints: ['./apps/nxls/src/main.ts'], | ||
bundle: true, | ||
minify: true, | ||
platform: 'node', | ||
mainFields: ['module', 'main'], | ||
outfile: './dist/apps/vscode/nxls/main.js', | ||
}) | ||
.catch(() => process.exit(1)); | ||
metafile: true, | ||
}); | ||
|
||
let text = await esbuild.analyzeMetafile(result.metafile, { | ||
verbose: true, | ||
}); | ||
|
||
// Comment out to analyze the build | ||
// await require('fs/promises').writeFile('./dep.txt', text); | ||
})(); |
2 changes: 1 addition & 1 deletion
2
libs/language-server/capabilities/document-links/src/lib/target-link.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters