Skip to content

Commit 0b51c09

Browse files
aklkvalex-ju
authored andcommitted
fix(components): add comment and ref to the glint patch
1 parent 33af7f6 commit 0b51c09

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
diff --git a/-private/environment/index.js b/-private/environment/index.js
2-
index 217583f4bae53f6f72db8d3debd0f31b3dac2b8e..aa2c1a2a665005d8c95b9e3018640fdf7e317861 100644
2+
index 217583f4bae53f6f72db8d3debd0f31b3dac2b8e..8caf5463cf2be2248952c2347c738b98d2b7e22b 100644
33
--- a/-private/environment/index.js
44
+++ b/-private/environment/index.js
5-
@@ -46,10 +46,6 @@ function emberLooseEnvironment(options) {
5+
@@ -46,10 +46,8 @@ function emberLooseEnvironment(options) {
66
// Pod component/controller/route
77
candidates.push(templatePath.replace(REGEXES.POD_TEMPLATE, '/component.ts'), templatePath.replace(REGEXES.POD_TEMPLATE, '/controller.ts'), templatePath.replace(REGEXES.POD_TEMPLATE, '/route.ts'));
88
}
99
- else if (templatePath.includes('/templates/components/')) {
1010
- // Classic component
1111
- candidates.push(colocatedTsScriptPath.replace('/templates/components/', '/components/'));
1212
- }
13+
+ // we no longer need this as it remnant of classic components and it interferes with our route stricture in showcase up
14+
+ // upstream PR: https://github.com/typed-ember/glint/pull/721
1315
else if (templatePath.includes('/templates/')) {
1416
// Classic controller/route
1517
candidates.push(colocatedTsScriptPath.replace('/templates/', '/controllers/'), colocatedTsScriptPath.replace('/templates/', '/routes/'));

0 commit comments

Comments
 (0)