@vavite/node-loader
v5.0.1
Published
ESM loader for transpiling modules with Vite
Downloads
24,058
Readme
@vavite/node-loader
@vavite/node-loader
is Node ESM loader that uses Vite to transpile modules. It is part of the vavite
project but it can be used in any Vite SSR project to enable sourcemap and breakpoints support.
Installation
npm install --save-dev @vavite/node-loader
Usage
Add the following to your Vite config:
import { defineConfig } from "vite";
import { nodeLoaderPlugin } from "@vavite/node-loader/plugin";
export default defineConfig({
plugins: [
nodeLoaderPlugin(),
// ...
],
});
And run your project with vavite-loader vite dev
.