Socket
Socket
Sign inDemoInstall

vite-plugin-resolve

Package Overview
Dependencies
Maintainers
2
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.5.1 to 2.5.2

presets/axios-v0.js

2

package.json
{
"name": "vite-plugin-resolve",
"version": "2.5.1",
"version": "2.5.2",
"description": "Custom resolve module content.",

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

@@ -8,6 +8,6 @@ const libEsm = require('lib-esm').default;

const lib = require(`./${file}`);
const result = libEsm({ window: lib.name, exports: lib.members });
record[version] = `${result.window}\n${result.exports}`;
const snippets = libEsm({ window: lib.name, exports: lib.members });
record[version] = `${snippets.window}\n${snippets.exports}`;
}
exports[name.replaceAll('-', '_')] = record;
}

@@ -10,2 +10,3 @@ export declare const ant_design_vue: {

export declare const axios: {
v0: string
v1: string

@@ -50,2 +51,3 @@ }

export declare const vue_router: {
v3: string
v4: string

@@ -55,2 +57,3 @@ }

v2: string
v2_7: string
v3: string

@@ -57,0 +60,0 @@ }

@@ -11,2 +11,3 @@ {

"axios": {
"v0": "axios-v0.js",
"v1": "axios-v1.js"

@@ -51,2 +52,3 @@ },

"vue-router": {
"v3": "vue-router-v3.js",
"v4": "vue-router-v4.js"

@@ -56,2 +58,3 @@ },

"v2": "vue-v2.js",
"v2_7": "vue-v2_7.js",
"v3": "vue-v3.js"

@@ -58,0 +61,0 @@ },

@@ -21,3 +21,2 @@ /**

'version',
'compile',
'defineComponent',

@@ -76,4 +75,4 @@ 'ref',

'onErrorCaptured',
'effect',
'_installedPlugins',
],
};

@@ -77,3 +77,3 @@ # vite-plugin-resolve

lodash: () => {
const result = libEsm({
const snippets = libEsm({
// lodash iife name

@@ -89,3 +89,3 @@ window: '_',

})
return `${result.window}\n${result.exports}`
return `${snippets.window}\n${snippets.exports}`
},

@@ -92,0 +92,0 @@ }),

@@ -77,3 +77,3 @@ # vite-plugin-resolve

lodash: () => {
const result = libEsm({
const snippets = libEsm({
// lodash 全局名称

@@ -89,3 +89,3 @@ window: '_',

})
return `${result.window}\n${result.exports}`
return `${snippets.window}\n${snippets.exports}`
},

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