Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
Best practices
2 votes
0 replies
73 views

I am working on a large React application and have started using dynamic imports with React.lazy() to reduce the initial bundle size. Example: const Dashboard = React.lazy(() => import('./Dashboard'...
Score of 0
1 answer
93 views

The image is being produced in ~/Documents/restaurant-page/dist/images/52e944639d832ccc4639.png but the URL imported in javascript is /home/amanr/Documents/restaurant-page/distimages/...
Score of 1
0 answers
74 views

I’m using Angular with ngx-build-plus and Webpack Module Federation. I have a Web Worker like this: const worker = new Worker(new URL('./model.worker.ts', import.meta.url)); Inside the worker, I ...
Score of 2
1 answer
102 views

Environment: - Angular Version: 19.2.6 - Angular CLI: 19.2.7 - Chrome Version: 146.0.7680.165 - Node: 20.17.0 - OS: Windows 10 x64 - Webpack: 4.47.0 Problem: When debugging Angular 19 project in ...
Score of 0
0 answers
69 views

If I am trying new SharedWorker("./worker.ts", {...}) I have "failed to fetch worker scipt", if I build it with tsup to .js first I have crossOriginIsolated = false (I have all ...
Tooling
0 votes
1 replies
108 views

I'm migrating from Webpack to Rspack and previously used svg-sprite-loader to generate SVG sprites. It doesn't work with Rspack because it relies on internal Webpack APIs (NormalModule....
Score of 0
0 answers
76 views

I am trying to decrypt and import my env variables with Dotenvx. Previously we were using the traditional dotenv package which all worked. We want to switch to dotenvx for the encryption capabilities ...
Score of 0
1 answer
74 views

I noticed that in TailwindCSS v4, PostCSS was removed, and under the hood everything is handled entirely by LightningCSS, so no extra PostCSS plugins are needed. Because of this, they were able to ...
Score of 0
1 answer
142 views

Problem I'm experiencing a strange behavior with my Next.js 14 project. When I first run npm run dev, the app starts on localhost:3000 but shows a webpack error. However, if I run npm run dev again (...
Tooling
1 vote
5 replies
219 views

I have an Electron app that I build using webpack + electron-forge. I consider to migrate to vite + electron-builder. The migration succeeded quite smoothly, and dev experience with vite is way better ...
Score of 2
3 answers
117 views

I am trying to print text and an image to a div using webpack but it does not seem to be working. Only the buttons display but the text and the image does not. Please can you take a look at my code ...
Tooling
1 vote
1 replies
344 views

I want to create PWA that works offline (cache static assets, API requests, images, etc) and using PWABuilder make a native mobile app for android and IOS at once. My tech stack: - [email protected]....
Score of 1
0 answers
89 views

I’m trying to implement a chrome extension using Angular21. I need to compile background script, that is written using TypeScript. For this I need to compile background script inside Angular build. I ...
Score of -1
1 answer
136 views

I am trying to convert a TypeScript file (test.ts) into an ESM JavaScript file (bundle.js) via webpack, ts-loader, and node (from NodeJS). For this purpose, I created a webpack.config.js and tsconfig....
Score of 1
0 answers
135 views

I have a main src/app.ts file in which i import a ./src/my-module.ts file. The bunlde file ./dist/app.bundle.js (that i get after executing webpack command) still references to ./src/my-module.ts. ...

15 30 50 per page
1
2 3 4 5
2825