Skip to content

Commit 34bc321

Browse files
jenweberamyrlam
andcommitted
Support more glimmer segments
Previously, @glimmer/tracking/primitives/cache was a 404. This was because the id parsing was adding an extra "ember-" to the front of the id. Closes #751 Co-authored-by: Amy Lam <[email protected]>
1 parent 56865d7 commit 34bc321

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/routes/project-version/modules/module.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ export default ClassRoute.extend(ScrollTracker, {
1111
let projectVersion = getFullVersion(compactVersion, project, projectObj, this.metaStore);
1212
let klass = params['module'];
1313

14+
// These modules should not have `ember-` tacked onto the front of them
15+
// when forming the ids and URLs.
16+
let isNotEmber = klass.match(/@glimmer|rsvp|jquery/)
17+
1418
if (
15-
!~klass.indexOf(project) &&
16-
!['rsvp', 'jquery', '@glimmer/component', '@glimmer/tracking'].includes(klass)
19+
!~klass.indexOf(project) && !isNotEmber
1720
) {
1821
klass = `${project}-${klass}`;
1922
}

0 commit comments

Comments
 (0)