@vavite-giacomorebonato/node-loader
v0.0.4
Published
ESM loader for transpiling modules with Vite
Downloads
236
Readme
This is a fork of:
- https://github.com/cyco130/vavite
- https://www.npmjs.com/package/vavite
@vavite-giacomorebonato/node-loader
@vavite-giacomorebonato/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-giacomorebonato/node-loader
Usage
Add the following to your Vite config:
import { defineConfig } from "vite";
import { nodeLoaderPlugin } from "@vavite-giacomorebonato/node-loader/plugin";
export default defineConfig({
plugins: [
nodeLoaderPlugin(),
// ...
],
});
And run your project with vavite-loader vite dev
.