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.0.0 to 1.0.1

2

package.json
{
"name": "vite-plugin-resolve",
"version": "1.0.0",
"version": "1.0.1",
"description": "Custom resolve code for vite",

@@ -5,0 +5,0 @@ "main": "src/index.js",

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

viteResolve({
// use string
// use string in web
vue: `const vue = window.Vue; export default vue;`,
// use function to return string
vuex: () => `const vuex = window.Vuex; export default Vuex;`,
// use function to return string in electron
electron: () => `const electron = require('electron'); export default electron;`,
})

@@ -28,0 +28,0 @@ ]

@@ -0,0 +0,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