Questions tagged [esbuild]

esbuild stands out as a rapid bundler designed for JavaScript and its companion languages like TypeScript, JSX, JSON, and CSS. It caters to both browser-based and node environments. This label is exclusively designated for inquiries related to the esbuild bundler and should not be used for general queries about bundling ES modules.

Using @emotion/styled alongside esbuild has caused an issue where importing styled11 as default.div is not functioning as expected

Working on building a website using esbuild, react, and emotion/MUI has been smooth sailing so far. However, I've hit a roadblock with getting the styled component from @emotion/styled to function properly. uncaught TypeError: import_styled11.default ...

TypeScript - ESBuild - Encountered an unexpected '<' token

When compiling TypeScript files for a React app with esbuild, everything goes smoothly. However, upon checking the browser console, an error pops up: An unexpected token '<' is causing errors after the return statement // components/editor/ ...

esBuild failing to generate typescript declaration files while running in watch mode

Recently dove into using edBuild and I have to say, it's been a breeze to get up and running - simple, fast, and easy. When I execute my esBuild build command WITHOUT WATCH, I can see that the type files (.d.ts) are successfully generated. However, when ...

Issue with esbuild not executing within docker compose configuration

Currently, I am new to using esbuild and struggling to set up a script that can watch and rebuild my files. Additionally, I need this functionality to work within a docker environment. Within my package.json file, the following scripts are defined: " ...

"Challenges with conditional exports and bundle size discrepancies arise when utilizing TurboRepo for a monorepo structure with a Next.js application and buildable

Trying to set up a JS/TS monorepo using Turborepo: . └── root ├── apps │ ├── first-app (next.js app) │ └── second-app (next.js app) ├── configs (ts, tsup) └── packages └── ui (re ...

Quick Tip: Enhancing your build with static assets and implementing cache busting techniques

I am facing an issue with my large static files that need to be hashed for HTTP caching in Vite. When I place them in the public directory, Vite only copies them without appending a hash to the filenames. However, if I put them in the assets directory, Vit ...

After copying to another computer, Node is unable to locate previously installed modules or add new ones

After transferring my project to a new computer using a synchronization service, I checked the folder permissions with ls -l and everything seemed correct. The project is a strapi app, and when I run npm run develop, I encounter the following error: > ...