vite-plugin-externals
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -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; | ||
} |
{ | ||
"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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27015
413
11