vite-plugin-cdn-import
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -124,2 +124,5 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var __defProp = Object.defineProperty; | ||
} | ||
function isUnpkg(prodUrl) { | ||
return prodUrl.includes("//unpkg.com"); | ||
} | ||
function autoComplete(name) { | ||
@@ -131,3 +134,3 @@ const config = modulesConfig[name]; | ||
return (prodUrl) => { | ||
if (isJsdeliver(prodUrl)) { | ||
if (isJsdeliver(prodUrl) || isUnpkg(prodUrl)) { | ||
return __spreadValues({ | ||
@@ -134,0 +137,0 @@ name, |
{ | ||
"name": "vite-plugin-cdn-import", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Import packages from CDN for the vite plugin", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
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
25082
569