441 questions
0
votes
0
answers
47
views
Why would an Angular 13 to 19 bundle optimization refactor result in larger chunks transferred on the network?
I have an older app built in v13, where all the 10 components live in the app module. All components and deps come at the same time, even if they're meant to be served piece by piece, resulting in an ...
0
votes
0
answers
15
views
Serverless Build Config not recognized
I am having trouble with my SLS deployment. I am trying to setup a ESbuild config as follow:
...
stages:
default:
resolvers:
aws-serverless-account:
type: aws
region: ${env:...
0
votes
0
answers
62
views
Show error status when chunk is not loading
Is there any way to see the http error response in a NavigationError?
When navigating in angular, navigation can fail for different reasons. I'd want to catch at least two of those, namely:
Internet ...
2
votes
1
answer
203
views
Why does Angular 18 (ESBuild) generate so many initial chunks after migrating from Angular 14?
I recently migrated my project from Angular 14 to Angular 18, and I’m noticing a huge increase in the number of initial chunks generated during the production build using ESBuild.
In Angular 14 (with ...
-1
votes
1
answer
66
views
How to exclude unnecessary database dialects while bundling with esbuild/rollup in Vite with Sequelize?
I have been scratching my head for a while now trying to figure out how to exclude unnecessary database dialect adapters. For context, I am building an app with Vite. Its using ElectronJs and ...
2
votes
1
answer
560
views
ESBuild resolving paths correctly in build phase but does not update import paths in compiled build, when bundle: false
This is my esbuild.config.js:
import { glob } from "glob";
import { execSync } from "child_process";
import path from "path";
import pino from "pino";
import ...
1
vote
0
answers
83
views
Remove html attributes on build on prod with esbuild
In Angular 19 app i'm trying to remove all data-testid attributes from html files if the production environment is running, but the onLoad() method doesn't run.
The first console.log works every time ...
1
vote
1
answer
313
views
NX: Angular Environment Variables - process is not defined
I have a NX project with an angular app. I'd like to configure a environment variable so that some value changes depending on the deployment environment. I'm following the NX Recipe documentation for ...
1
vote
0
answers
78
views
Angular to load js file with loader 'file'
Angular when used with esbuild supports specifying loaders via import attributes. For example something like this:
import userImageURL from 'user.svg' with { loader: 'file' };
This works because of ...
0
votes
0
answers
144
views
Serverless v4 ESBuild packaging ignoring non-js files
I have just upgraded to Serverless V4, and removed serverless-bundle as recommended.
Have configured esbuild with a loader:
loader:{
'.html': 'copy',
'.node': 'copy',
...
1
vote
1
answer
582
views
Is it possible to tell esbuild to ignore top-level await when bundling to node12 target?
await has been supported from Node 7.5, but top-level await has been only supported from Node 14.8.
I'm writing script for a service that will wrap user scripts inside a function and run it on Node 12....
0
votes
0
answers
143
views
Issue with external styles in custom elements after upgrading to Angular 19
Recently I upgraded my project with NX to Angular 19 and encountered an issue with custom elements.
I have 2 apps in my NX monorepo:
App with custom element (Widget);
Playground where the widget is ...
0
votes
2
answers
623
views
"AWS CRT binary not present" when trying to run bundled server.js in NodeJS application which depends on @aws-sdk/signature-v4-crt
I am working on a NodeJS project which pulls in @aws-sdk/crt-loader as a transitive dependency of @aws-sdk/signature-v4-crt. I am generating a server.js bundle using esbuild. When starting my script ...
1
vote
1
answer
316
views
Podman builds of Vite project fail
Our frontend project based on Vite is running in the backend with Docker. During release, Podman runs automated npm install and npm run build commands.
Recently, the Podman builds fail. One of the 3rd ...
0
votes
1
answer
499
views
Rails not compiling new TailwindCSS classes in development
I have a rails app that was generated using
rails new new_app --css tailwindcss -j esbuild
This created a procfile that contains this stuff
web: env RUBY_DEBUG_OPEN=true bin/rails server -b 0.0.0.0
...
3
votes
1
answer
1k
views
Updating ESBuild from 0.24.0 to 0.24.1 throws strange errors
I am using tsup, which uses ESbuild, to build my libraries. Example: https://github.com/react18-tools/turborepo-template/actions/runs/12427963648/job/34698706616
When I tried investigating, I found ...
0
votes
1
answer
101
views
ESBuild always fails with the signal SIGSEGV
Every time I try to install most packages, they fail with the signal SIGSEGV. I've tried everything, every solution on google, uninstalling and reinstalling node, etc. Nothing works. I have no errors ...
1
vote
1
answer
136
views
How do add esbuild to my vscode extension?
My extension requires esbuild in order to import ts files from the user's workspace but esbuild can't be bundled.
Adding !node_modules/esbuild to my .vscodeignore file did not work.
Is there a way to ...
1
vote
1
answer
74
views
Is there any of way of avoid creating of the Node.js developing package local repository cache containing @types and else basic definitions?
I'm writing the TypeScript simplest modules to learn some of the basics of the language, therefore I need TO NOT store (4500 file items within 140MB space) • to at least 100 exercises.
To be fair, ...
4
votes
0
answers
311
views
How do I get esbuild to stop renaming things?
In upgrading my SpreeCommerce app, I've been trying to use esbuild as the JS bundler. I'm treating the Spree frontend JS files as a vendor directory in the app, trying to get esbuild to bundle the ...
0
votes
1
answer
246
views
How to import an external module with TypeScript and esbuild?
I'm writing a storage adapter for Ghost using the @aws-sdk/client-s3. I want the adapter to be self-contained, so I'm trying to use esbuild to bundle it all into a single file. To build a storage ...
2
votes
1
answer
2k
views
Vite drop console.log but keep console.error on esbuild
I want to remove the console.logs in the build but don't want to remove the console.errors, is there a way to do this?
This is what I currently have.
esbuild: {
drop: mode === 'production' ? ...
4
votes
0
answers
397
views
Migrate Angular 17 build from webpack to esbuild
Our project was using:
"builder": @angular-builders/custom-webpack:browser
for our build.
In our webpack.config.js we have this plugin:
/**
* report-result.js cannot be tree-shaked as ...
1
vote
0
answers
207
views
"Failed to resolve module specifier 'events'." when bundling node modules with esbuild and esbuild-deno-loader [DENO 2]
I'm building a Chrome extension, using Deno to manage my node_modules, and esbuild-deno-loader to bundle the modules into a local file, since Chrome extensions do not allow external dependencies.
The ...
2
votes
0
answers
157
views
Unable to import modules from subpaths in a shared package using esbuild
I'm trying to set up my shared package to allow importing modules from specific subpaths (e.g., @shared/utils, @shared/hooks). To achieve this, I've configured my package.json as follows:
// package....