Socket
Socket
Sign inDemoInstall

vite-plugin-resolve

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-resolve - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

10

package.json
{
"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 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc