A Nuxt module that enables esbuild to transpile JavaScript and TypeScript, speeding up development builds. Current version 1.0.4. It uses esbuild-loader for fast transpilation during development, and optionally for TypeScript, while still applying Babel for production builds to ensure browser compatibility. Similar to Vite's approach. Provides faster dev builds compared to Babel-only or ts-loader setups.
npm install nuxt-esbuild-moduleNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure nuxt-esbuild module with TypeScript support in nuxt.config.js. Shows how to add module and specify esbuild options.
Do not rely on esbuild for production. Ensure Babel configuration is correct for production builds.
Review Babel plugins and ensure they work with esbuild-transpiled code. Consider using only esbuild for TypeScript if possible.
Check Nuxt and Webpack versions. Upgrade if necessary.
Use modules: ['nuxt-esbuild'] for Nuxt 3.
npm install nuxt-esbuild and add 'nuxt-esbuild' to buildModules in nuxt.config.js
Upgrade Webpack to 4+ or use a compatible version of esbuild-loader
Ensure tsconfig.json exists and path is correct, or omit tsconfigRaw if not needed