https://github.com/markthree/specifier-backward
"node:any" to "any"
https://github.com/markthree/specifier-backward
Last synced: 11 months ago
JSON representation
"node:any" to "any"
- Host: GitHub
- URL: https://github.com/markthree/specifier-backward
- Owner: markthree
- License: mit
- Created: 2023-03-07T12:44:31.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-28T08:06:27.000Z (about 2 years ago)
- Last Synced: 2025-06-05T00:03:11.929Z (11 months ago)
- Language: TypeScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# specifier-backward
"node:any" to "any"
## README đĻ
[įŽäŊ䏿](./README_CN.md) | English
## Motivation
To be compatible with the old version of node đ [Error: Cannot find module 'node:buffer'](https://github.com/markthree/go-get-folder-size/issues/2)
## Usage
### install
```shell
npm i specifier-backward -D
```
### vite
```ts
// vite.config.ts
import { vitePlugin } from 'specifier-backward'
export default {
plugins: [vitePlugin()]
}
```
### rollup
```ts
// rollup.config.ts
import { rollupPlugin } from 'specifier-backward'
export default {
plugins: [rollupPlugin()]
}
```
### webpack
```ts
// webpack.config.ts
import { webpackPlugin } from 'specifier-backward'
export default {
plugins: [webpackPlugin()]
}
```
### esbuild
```ts
import { build } from 'esbuild'
import { esbuildPlugin } from 'specifier-backward'
build({
plugins: [esbuildPlugin()]
})
```
## License
Made with [markthree](https://github.com/markthree)
Published under [MIT License](./LICENSE).