vite-plugin-resolve
Advanced tools
Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "vite-plugin-resolve", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Custom resolve module content.", | ||
"main": "index.js", | ||
"repository": "https://github.com/caoxiemeihao/vite-plugins/tree/main/packages/resolve", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/caoxiemeihao/vite-plugins.git", | ||
"directory": "packages/resolve" | ||
}, | ||
"author": "草鞋没号 <308487730@qq.com>", | ||
@@ -11,3 +15,3 @@ "license": "MIT", | ||
"devDependencies": { | ||
"vite": "^2.x" | ||
"vite": "^2.x.x" | ||
}, | ||
@@ -14,0 +18,0 @@ "keywords": [ |
@@ -39,3 +39,3 @@ # vite-plugin-resolve [![NPM version](https://img.shields.io/npm/v/vite-plugin-resolve.svg)](https://npmjs.org/package/vite-plugin-resolve) [![awesome-vite](https://awesome.re/badge.svg)](https://github.com/vitejs/awesome-vite) | ||
// Support return Promise | ||
'@scope/name': () => require('fs').promises.readFile('path', 'utf-8'), | ||
'@scope/name': () => require('fs/promises').readFile('path', 'utf-8'), | ||
}) | ||
@@ -74,2 +74,2 @@ ``` | ||
1. Bypass the builtin `vite:resolve` plugin | ||
2. Reasonably avoid [Pre-Bundling](https://vitejs.dev/guide/dep-pre-bundling.html) treatment | ||
2. Reasonably avoid [Pre-Bundling](https://vitejs.dev/guide/dep-pre-bundling.html) |
@@ -39,3 +39,3 @@ # vite-plugin-resolve [![NPM version](https://img.shields.io/npm/v/vite-plugin-resolve.svg)](https://npmjs.org/package/vite-plugin-resolve) [![awesome-vite](https://awesome.re/badge.svg)](https://github.com/vitejs/awesome-vite) | ||
// 支持返回 Promise | ||
'@scope/name': async () => await require('fs').promises.readFile('path', 'utf-8'), | ||
'@scope/name': async () => await require('fs/promises').readFile('path', 'utf-8'), | ||
}) | ||
@@ -42,0 +42,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
5849
0
1