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 1.2.0 to 1.3.0

index.d.ts

16

package.json
{
"name": "vite-plugin-resolve",
"version": "1.2.0",
"version": "1.3.0",
"description": "Custom resolve code for vite",
"main": "src/index.js",
"main": "index.js",
"repository": "https://github.com/caoxiemeihao/vite-plugins/tree/main/packages/resolve",

@@ -10,8 +10,8 @@ "author": "草鞋没号 <308487730@qq.com>",

"scripts": {},
"devDependencies": {},
"files": [
"src",
"package.json",
"README.md"
],
"devDependencies": {
"@types/node": "^16.11.6",
"tslib": "^2.3.1",
"typescript": "^4.4.4",
"vite": "^2.6.13"
},
"keywords": [

@@ -18,0 +18,0 @@ "vite",

@@ -25,6 +25,6 @@ # vite-plugin-resolve

vue: `const vue = window.Vue; export default vue;`,
// use nested module and function to return code string
// use nested module name, return code string through function
'@scope/name': () => `const Lib = window.LibraryName; export default Lib;`,
// use function to return string in electron
'electron-store': () => `const Store = require('electron-store'); export default Store;`,
// use in electron
'electron': `const Electron = require('electron'); export default Electron;`,
})

@@ -37,3 +37,3 @@ ]

1. Resolve-module will be generated code into `node_modules/.vite-plugin-resolve/xxxx.js`
1. Resolve-module will be generated code into `node_modules/.vite-plugin-resolve/vue.js`
2. Append an resolve-module into alias

@@ -40,0 +40,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc