Skip to content

Latest commit

 

History

History

node-loader

@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.