Socket
Socket
Sign inDemoInstall

vite-plugin-fast-external

Package Overview
Dependencies
1
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.6.0 to 1.6.1

8

index.js

@@ -11,9 +11,7 @@ const resolve = require('vite-plugin-resolve');

Object.keys(externals).forEach(key => {
const strOrFn = Object.values(externals[key])[0];
for (const [moduleId, strOrFn] of Object.entries(externals)) {
if (typeof strOrFn === 'string') {
const iifeName = strOrFn;
externals[key] = `const ${iifeName} = window['${iifeName}']; export { ${iifeName} as default }`;
externals[moduleId] = `const ${moduleId} = window['${/* iife name */strOrFn}']; export { ${moduleId} as default }`;
}
});
}

@@ -20,0 +18,0 @@ const plugin = resolve(externals, options);

{
"name": "vite-plugin-fast-external",
"version": "1.6.0",
"version": "1.6.1",
"description": "Without lexical transform, support custom external code.",

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc