@vavite-giacomorebonato/node-loader
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

This is a fork of:

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

Readme

Keywords

none

Package Sidebar

Install

npm i @vavite-giacomorebonato/node-loader

Weekly Downloads

156

Version

0.0.4

License

MIT

Unpacked Size

12.4 kB

Total Files

10

Last publish

Collaborators

  • giacomorebonato