Skip to main content

Questions tagged [esbuild]

esbuild is a fast bundler for JavaScript and its related languages (e.g. TypeScript, JSX, JSON, and CSS) with support for both the browser and node. This tag is specific for the esbuild bundler and is not used for general questions about bundling ES modules.

0 votes
0 answers
11 views

How to use relative paths in SCSS URLs which work for Angular application and karma builds

I've migrated a project to Angular 18 using @angular-devkit/build-angular:application as builder. During the migration process all relative paths in SCSS image URLs have been changed from "~/src/...
Ulrich Wengert's user avatar
0 votes
1 answer
39 views

How to add javascript class methods from separate file includes

I have been working with a modular backend, nodejs + typescript + esbuild. This is an app that at it's core is made up of a class module and child modules that add methods to that class (see below ...
hpavc's user avatar
  • 1,336
-1 votes
1 answer
32 views

Can I use pug template with angular builder esbuild?

In angular 17, I am using "builder": "@angular-builders/custom-webpack:browser". Now I want to use esbuild buider. But my project currently use pug template alter for html. Can I ...
Minh Đặng's user avatar
-1 votes
0 answers
10 views

Esbuild plugin : Mimic file loader but add values

I looking to write a esbuild plugin to retrieve the sizes of images. Basically, I want to have the same behavior as the file loader (the page are remapped with assetNames) Right now the file loader ...
Matthieu Riegler's user avatar
0 votes
0 answers
44 views

Why @nx/esbuild desn't include functions from the lodash-es into the bundle?

UPD: OK, my bad, it looks like this is not the esbuild's problem, but NX Build system. The same configuration made for the clean esbuild works just fine, everything is included in the bundle, but if I ...
Vetal's user avatar
  • 73
0 votes
1 answer
26 views

Avoid url resolution in scss files in Angular

I did a css -> scss migration on an existing Angular project using schematics-scss-migrate. Everything works fine except the URL's, if any, in scss files. So I found out that in scss files the URL'...
Urooj's user avatar
  • 334
0 votes
0 answers
23 views

React Vite Error on Production Build: "jsxs" is not exported by "node_modules/react/jsx-runtime.js

I am using React + Javascript + Vite for the project. I installed the required packages for the project , Also i install one package from local npm installation eg npm install source_folder The ...
Sooraj Jose's user avatar
0 votes
1 answer
31 views

Angular - Esbuild chunk sizes do not match build output when served

I recently switched my Angular app to v18 and moved from webpack to esbuild. However, when comparing my chunk sizes with code splitting, I see the sizes do not make sense. When using webpack, my ...
Cody Pritchard's user avatar
1 vote
1 answer
44 views

Angular 17 ESBuild Configuration for environment variables

Just migrated from Angular 15 to the 17. And currently it is possible to build and serve with esbuild instead of webpack. With webpack there was a way use a custom webpack config for things like, ...
Semedmar's user avatar
0 votes
0 answers
21 views

Web Workers with Angular 17 works in development mode but not in production build

I'm coding an Angular 17 app and I need to use Web Workers. The problem is that this is working in my development environment but not in my production build. I do something like this: // in a random ...
Danilo Bassi's user avatar
0 votes
0 answers
16 views

Prevent Vite/RollUp from scoping globalThis

I'm using PDF.js and one of its classes is instantiated with: class DOMCanvasFactory extends _base_factory_js__WEBPACK_IMPORTED_MODULE_0__.BaseCanvasFactory { constructor({ ownerDocument = ...
adamdaly's user avatar
  • 363
0 votes
0 answers
14 views

How build mocha fraimwork for browser?

I need to change the code in the project mochajs I know what I need to do, but I don't know how to build the es module for browser. I used esbuild the project is not built correctly and does not run ...
Sergey's user avatar
  • 612
0 votes
0 answers
19 views

html2pptxgenjs does not seem to work with angular browser-esbuild

I have updated angular to 18 using its new features, like changing the builder from browser to browser-esbuild and now getting this error during build (it was working fine with the browser builder) [...
Weblogic Welcome's user avatar
1 vote
0 answers
57 views

Angular - esbuild chunk names

I just upgraded an Angular app from v17 to v18, and during the process I made the move from using webpack to now building with esbuild. Im trying to understand the code splitting and chunk names with ...
Cody Pritchard's user avatar
0 votes
0 answers
33 views

angular v17 esbuild sass url resolve

I have different base-href-s per localizations (/de; /en; /nl ...). In scss files I have background-image: url('assets/picture.png');, what cannot be resolved by builer. If I use path '/assets/...' ...
thelex's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
29