@plugin-light/import-meta-resolve
v1.0.0
Published
<p align="center"> <img src="https://img.shields.io/npm/dw/@plugin-light/import-meta-resolve"> <img src="https://img.shields.io/npm/unpacked-size/@plugin-light/import-meta-resolve"> <img src="https://img.shields.io/npm/v/@plugin-light/import-meta-re
Readme
路径解析
import-meta-resolve 的 CJS 版本,可供不支持 ESM 的项目使用。
如何使用
安装
pnpm add @plugin-light/import-meta-resolve -D使用
import { resolve } from '@plugin-light/import-meta-resolve';
console.log(resolve('./index.js', import.meta.url))