@web/dev-server-rollup
Advanced tools
Comparing version 0.3.2 to 0.3.3
# @web/dev-server-rollup | ||
## 0.3.3 | ||
### Patch Changes | ||
- 0a05464b: do not resolve multiple times outside root files | ||
## 0.3.2 | ||
@@ -4,0 +10,0 @@ |
@@ -135,2 +135,6 @@ "use strict"; | ||
} | ||
// file already resolved outsided root dir | ||
if (utils_1.isOutsideRootDir(resolvedImportPath)) { | ||
return `${resolvedImportPath}`; | ||
} | ||
const normalizedPath = path_1.default.normalize(resolvedImportPath); | ||
@@ -137,0 +141,0 @@ if (!normalizedPath.startsWith(rootDir)) { |
@@ -8,2 +8,3 @@ /** | ||
export declare function isAbsoluteFilePath(path: string): boolean; | ||
export declare function isOutsideRootDir(path: string): boolean; | ||
//# sourceMappingURL=utils.d.ts.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isAbsoluteFilePath = exports.toBrowserPath = void 0; | ||
exports.isOutsideRootDir = exports.isAbsoluteFilePath = exports.toBrowserPath = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
@@ -23,2 +23,6 @@ const REGEXP_ABSOLUTE = /^(?:\/|(?:[A-Za-z]:)?[\\|/])/; | ||
exports.isAbsoluteFilePath = isAbsoluteFilePath; | ||
function isOutsideRootDir(path) { | ||
return path.startsWith('/__wds-outside-root__/'); | ||
} | ||
exports.isOutsideRootDir = isOutsideRootDir; | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "@web/dev-server-rollup", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"publishConfig": { | ||
@@ -66,3 +66,3 @@ "access": "public" | ||
"@web/test-runner-chrome": "^0.9.0", | ||
"@web/test-runner-core": "^0.10.2", | ||
"@web/test-runner-core": "^0.10.14", | ||
"chai": "^4.2.0", | ||
@@ -69,0 +69,0 @@ "node-fetch": "3.0.0-beta.9", |
@@ -24,3 +24,3 @@ /* eslint-disable no-control-regex */ | ||
import { toBrowserPath, isAbsoluteFilePath } from './utils'; | ||
import { toBrowserPath, isAbsoluteFilePath, isOutsideRootDir } from './utils'; | ||
import { createRollupPluginContextAdapter } from './createRollupPluginContextAdapter'; | ||
@@ -200,2 +200,7 @@ import { createRollupPluginContexts, RollupPluginContexts } from './createRollupPluginContexts'; | ||
// file already resolved outsided root dir | ||
if (isOutsideRootDir(resolvedImportPath)) { | ||
return `${resolvedImportPath}`; | ||
} | ||
const normalizedPath = path.normalize(resolvedImportPath); | ||
@@ -202,0 +207,0 @@ if (!normalizedPath.startsWith(rootDir)) { |
@@ -17,1 +17,5 @@ import path from 'path'; | ||
} | ||
export function isOutsideRootDir(path: string) { | ||
return path.startsWith('/__wds-outside-root__/'); | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
79595
1214