@embroider/shared-internals
Advanced tools
Comparing version 2.5.2-unstable.361e2f7 to 2.5.2-unstable.43da932
{ | ||
"name": "@embroider/shared-internals", | ||
"version": "2.5.2-unstable.361e2f7", | ||
"version": "2.5.2-unstable.43da932", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Utilities shared among the other embroider packages", |
@@ -51,2 +51,4 @@ "use strict"; | ||
exports.emberVirtualPackages.add('@glimmer/manager'); | ||
// ember-data pre 4.12 failed to declare this as a peer dependency of @ember-data/debug | ||
exports.emberVirtualPeerDeps.add('@ember-data/store'); | ||
// These are the known names that people use to import template precomiplation | ||
@@ -53,0 +55,0 @@ // macros from. |
@@ -66,17 +66,17 @@ "use strict"; | ||
ownerOfFile(filename) { | ||
let segments = filename.split(path_1.sep); | ||
let segments = filename.replace(/\\/g, '/').split(path_1.posix.sep); | ||
// first we look through our cached packages for any that are rooted right | ||
// at or above the file. | ||
for (let length = segments.length; length >= 0; length--) { | ||
if (segments[length - 1] === 'node_modules') { | ||
// once we hit a node_modules, we're leaving the package we were in, so | ||
// any higher caches don't apply to us | ||
if (segments[length - 1] === 'node_modules' || segments[length - 1] === '') { | ||
// once we hit a node_modules or the filesystem root, we're leaving the | ||
// package we were in, so any higher caches don't apply to us | ||
break; | ||
} | ||
let usedSegments = segments.slice(0, length); | ||
let candidate = usedSegments.join(path_1.sep); | ||
let candidate = usedSegments.join(path_1.posix.sep); | ||
if (this.rootCache.has(candidate)) { | ||
return this.rootCache.get(candidate); | ||
} | ||
if (getCachedExists([...usedSegments, 'package.json'].join(path_1.sep))) { | ||
if (getCachedExists([...usedSegments, 'package.json'].join(path_1.posix.sep))) { | ||
return this.get(candidate); | ||
@@ -83,0 +83,0 @@ } |
@@ -57,2 +57,5 @@ "use strict"; | ||
var _a; | ||
if (state.associate) { | ||
return; | ||
} | ||
let template = getTemplate(path, state); | ||
@@ -93,2 +96,5 @@ if (!template) { | ||
ExportNamedDeclaration(path, state) { | ||
if (state.associate) { | ||
return; | ||
} | ||
let template = getTemplate(path, state); | ||
@@ -95,0 +101,0 @@ if (!template) { |
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
151379
1543