@vavite/node-loader
v5.1.0
Published
ESM loader for transpiling modules with Vite
Downloads
26,816
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
.