Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-externals

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-externals - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

10

dist/es/index.js

@@ -78,3 +78,4 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {

},
async transform(code, id, ssr) {
async transform(code, id, options) {
const ssr = compatSsrInOptions(options);
if (!isNeedExternal.call(this, userOptions, code, id, isBuild, ssr)) {

@@ -178,1 +179,8 @@ return;

}
function compatSsrInOptions(options) {
var _a;
if (typeof options === 'boolean') {
return options;
}
return (_a = options === null || options === void 0 ? void 0 : options.ssr) !== null && _a !== void 0 ? _a : false;
}

@@ -84,3 +84,4 @@ "use strict";

},
async transform(code, id, ssr) {
async transform(code, id, options) {
const ssr = compatSsrInOptions(options);
if (!isNeedExternal.call(this, userOptions, code, id, isBuild, ssr)) {

@@ -185,1 +186,8 @@ return;

}
function compatSsrInOptions(options) {
var _a;
if (typeof options === 'boolean') {
return options;
}
return (_a = options === null || options === void 0 ? void 0 : options.ssr) !== null && _a !== void 0 ? _a : false;
}

5

package.json
{
"name": "vite-plugin-externals",
"version": "0.3.0",
"version": "0.3.1",
"description": "externals plugin for vite",

@@ -40,2 +40,3 @@ "author": "crcong",

"@types/node": "^15.12.2",
"@types/ws": "^8.2.2",
"bumpp": "^7.1.1",

@@ -46,3 +47,3 @@ "eslint": "^7.28.0",

"typescript": "^4.3.2",
"vite": "^2.3.7"
"vite": "^2.7.1"
},

@@ -49,0 +50,0 @@ "dependencies": {

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