vite-plugin-replace-sourcemap-url
v1.0.0
Published
vite plugin replace sourcemap url in node_modules
Downloads
4
Readme
vite-plugin-replace-sourcemap-url
English | 中文
[![npm][npm-img]][npm-url] [![node][node-img]][node-url]
replace the node_modules file's sourcemap url.
Install (npm or yarn)
node version: >=12.0.0
vite version: >=2.0.0
npm i vite-plugin-replace-sourcemap-url -D
or
yarn add vite-plugin-replace-sourcemap-url -D
Usage
- Config plugin in
vite.config.ts
import { defineConfig, Plugin } from 'vite';
import replaceUrl from 'vite-plugin-replace-sourcemap-url';
export default defineConfig({
plugins: [
replaceUrl({
root: __dirname,
}),
],
});
Options
| param | type | default | desc |
| --- | --- | --- | --- |
| root | string
| - | set vite project root path |
License
MIT