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.3.0 to 1.3.1

18

index.js

@@ -42,14 +42,12 @@ const fs = require('fs');

// generate external module file
// generate custom-resolve module file
for (const [module, strOrFn] of Object.entries(resolveDict)) {
const moduleId = path.join(dir, module + '.js');
const moduleContent = typeof strOrFn === 'function' ? strOrFn() : strOrFn;
if (!fs.existsSync(moduleId)) {
// for '@scope/name' module
ensureDir(path.parse(moduleId).dir);
// for '@scope/name' module
ensureDir(path.parse(moduleId).dir);
const moduleContent = typeof strOrFn === 'function' ? strOrFn() : strOrFn;
fs.writeFileSync(moduleId, moduleContent);
}
// write custom-resolve
fs.writeFileSync(moduleId, moduleContent);
}

@@ -97,5 +95,5 @@ }

if (!(fs.existsSync(dir) && fs.statSync(dir).isDirectory())) {
fs.mkdirSync(dir, { recursive: true })
fs.mkdirSync(dir, { recursive: true });
}
return dir
return dir;
}
{
"name": "vite-plugin-resolve",
"version": "1.3.0",
"version": "1.3.1",
"description": "Custom resolve code for vite",

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

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