3 ms·
I just checked my most recent frontend project that uses Typescript as much as possible. Here's how it works: - src/.ts: Compile with esbuild in webpack - tes
by trinovantes 4y ago
I just checked my most recent frontend project that uses Typescript as much as possible. Here's how it works:
- src/.ts: Compile with esbuild in webpack
- tests/.test.ts: Compiled with babel
- jest.config.ts: Compiled with ts-node
- webpack.config.ts: Compiled with ts-node
In an ideal world, one tool should do everything but I doubt that will ever happen
- mikojan 4y agoI'm curious: Why use webpack with esbuild in a "most recent frontend project"? Not so long ago at $DAYJOB we even migrated a big legacy project from webpack to esbuild in no time.
- trinovantes 4y agoI've used webpack for several years now and have written custom plugins to accomplish what I need. esbuild-loader gives great typescript performance almost on par with vite so I don't see the need to learn a new build system. Also, there's no official Vue 3 support for esbuild so that's a problem for some of my projects