An open API service indexing awesome lists of open source software.

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"

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