@web/dev-server-rollup
Advanced tools
Comparing version 0.3.20 to 0.3.21
@@ -65,3 +65,3 @@ "use strict"; | ||
async resolveImport({ source, context, code, column, line }) { | ||
var _a, _b, _c; | ||
var _a; | ||
if (context.response.is('html') && source.startsWith('�')) { | ||
@@ -79,5 +79,3 @@ // when serving HTML a null byte gets parsed as an unknown character | ||
} | ||
if (!injectedFilePath && | ||
!path_1.default.isAbsolute(source) && | ||
/^https?$/.test((_b = (_a = whatwg_url_1.default.parseURL(source)) === null || _a === void 0 ? void 0 : _a.scheme) !== null && _b !== void 0 ? _b : '')) { | ||
if (!injectedFilePath && !path_1.default.isAbsolute(source) && whatwg_url_1.default.parseURL(source) != null) { | ||
// don't resolve relative and valid urls | ||
@@ -105,3 +103,3 @@ return source; | ||
} | ||
let result = await ((_c = rollupPlugin.resolveId) === null || _c === void 0 ? void 0 : _c.call(rollupPluginContext, resolvableImport, filePath, { isEntry: false })); | ||
let result = await ((_a = rollupPlugin.resolveId) === null || _a === void 0 ? void 0 : _a.call(rollupPluginContext, resolvableImport, filePath, { isEntry: false })); | ||
if (!result && injectedFilePath) { | ||
@@ -108,0 +106,0 @@ // the import is a file path but it was not resolved by this plugin |
{ | ||
"name": "@web/dev-server-rollup", | ||
"version": "0.3.20", | ||
"version": "0.3.21", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
@@ -116,7 +116,3 @@ /* eslint-disable no-control-regex */ | ||
if ( | ||
!injectedFilePath && | ||
!path.isAbsolute(source) && | ||
/^https?$/.test(whatwgUrl.parseURL(source)?.scheme ?? '') | ||
) { | ||
if (!injectedFilePath && !path.isAbsolute(source) && whatwgUrl.parseURL(source) != null) { | ||
// don't resolve relative and valid urls | ||
@@ -123,0 +119,0 @@ return source; |
Sorry, the diff of this file is not supported yet
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
78596
1259