Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@clickup/ngx-esbuild
Advanced tools
ClickUp's esbuild powered local dev server, open sourced so you can speed up developing your own Angular applications!
ClickUp's esbuild powered local dev server, open sourced so you can speed up developing your own Angular applications!
This is an alternative local development environment for large Angular applications, powered by esbuild.
It makes a different set of trade-offs than the official Angular CLI esbuild solution to achieve faster build times and use less memory, namely:
It mainly works by implementing a version of these 2 ideas:
Hopefully one day, the Angular CLI will support some of this out of the box, but until then, this is a great alternative.
[!IMPORTANT]
Currently this only works with Nx workspaces, but we're planning on making it work with regular Angular CLI projects as well. See https://github.com/clickup/ngx-esbuild/issues/3 for more info.
Install with your favorite package manager:
npm install -D @clickup/ngx-esbuild
Add a new target to your apps project.json
(assuming you have a build
target using the @angular-devkit/build-angular:browser
or @angular-devkit/build-angular:browser-esbuild
executors):
"targets": {
... other targets ...
"serve-esbuild": {
"executor": "@clickup/ngx-esbuild:build",
"options": {
"serve": true
}
}
}
Run with nx serve-esbuild <project-name>
to start the dev server powered by esbuild!
The builder is fast as it makes a different set of trade-offs than the Angular CLI esbuild solution. Namely, it doesn't do any typechecking.
While showing type errors in your IDE works to some extent, you probably want to still be able to typecheck your entire project.
So to enable typechecking, you can add another target like this:
"type-check": {
"executor": "nx:run-commands",
"options": {
"command": "npx tsc -p apps/your-app/tsconfig.app.json --noEmit --watch --incremental --pretty"
}
}
Then run with nx type-check <project-name>
If you want to type-check component templates, you can run the same command but replace tsc
with ngc
instead (this will use a much larger amount of memory though and may be more likely to cause performance problems):
"command": "npx ngc -p apps/your-app/tsconfig.app.json --noEmit --watch --incremental --pretty"
You can even run the dev server + typechecking side by side using stmux:
stmux -e '' -- [ "nx serve-esbuild demo" .. "nx type-check demo" ]
These options will be read from the existing build
target that uses the angular devkit builder.
Many of these options only support a subset of different ways that they can be configured by the Angular CLI. If something doesn't work in your project, please file an issue and we can probably add support!
assets
(partially supported)main
polyfills
tsConfig
scripts
(partially supported)styles
(partially supported)stylePreprocessorOptions
(only scss is supported currently)fileReplacements
(partially supported)outputPath
sourceMap
(partially supported)index
(partially supported)webWorkerTsConfig
This solution is intended to only ever work for local development, and will never support building for production. So, any options related to production builds will never be supported, for everything else it may be possible to add support in the future.
inlineStyleLanguage
optimization
resourcesOutputPath
aot
vendorChunk
commonChunk
baseHref
deployUrl
verbose
progress
i18nMissingTranslation
i18nDuplicateTranslation
localize
watch
outputHashing
poll
deleteOutputPath
preserveSymlinks
extractLicenses
buildOptimizer
namedChunks
subresourceIntegrity
serviceWorker
ngswConfigPath
statsJson
budgets
crossOrigin
allowedCommonJsDependencies
corepack enable
pnpm install
pnpm nx affected:test
pnpm nx affected:lint
pnpm demo
FAQs
ClickUp's esbuild powered local dev server, open sourced so you can speed up developing your own Angular applications!
We found that @clickup/ngx-esbuild demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.