New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-esmodule

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-esmodule - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

16

index.js

@@ -15,7 +15,13 @@ const fs = require('fs');

const plugin = optimizer(
modules.reduce((memo, mod, idx) => Object.assign(memo, {
[mod]: args => idx === modules.length - 1
? buildESModules(args, modules, options) // One time build
: null,
}), {}),
modules.reduce((memo, mod, idx) => {
if (typeof mod === 'object') {
// e.g. { 'file-type': 'file-type/index.js' }
mod = Object.keys(mod)[0];
}
return Object.assign(memo, {
[mod]: args => idx === modules.length - 1
? buildESModules(args, modules, options) // One time build
: null,
})
}, {}),
{ dir: `.${name}` },

@@ -22,0 +28,0 @@ );

{
"name": "vite-plugin-esmodule",
"version": "1.1.1",
"version": "1.1.2",
"description": "Build ES module to CommonJs module for Node.js",

@@ -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