specifier-backward
v0.0.4
Published
'node:any' to 'any'
Downloads
6
Readme
specifier-backward
"node:any" to "any"
README 🦉
简体中文 | English
Motivation
To be compatible with the old version of node 👉 Error: Cannot find module 'node:buffer'
Usage
install
npm i specifier-backward -D
vite
// vite.config.ts
import { vitePlugin } from 'specifier-backward'
export default {
plugins: [vitePlugin()]
}
rollup
// rollup.config.ts
import { rollupPlugin } from 'specifier-backward'
export default {
plugins: [rollupPlugin()]
}
webpack
// webpack.config.ts
import { webpackPlugin } from 'specifier-backward'
export default {
plugins: [webpackPlugin()]
}
esbuild
import { build } from 'esbuild'
import { esbuildPlugin } from 'specifier-backward'
build({
plugins: [esbuildPlugin()]
})
License
Made with markthree
Published under MIT License.