Skip to content

Commit e4a2d09

Browse files
committed
Pods support
1 parent 4977b3c commit e4a2d09

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
A polyfill implementation of the upcoming default strict resolver built in to Ember.
44

5+
See [RFC #1132](https://rfcs.emberjs.com/id/1132-default-strict-resolver) for more.
6+
57
## Installation
68

79
```

src/pods.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* Adapts import.meta.glob pods' to the standard format for the strict resolver
3+
*
4+
* e.g.:
5+
*
6+
* ```js
7+
* modules = {
8+
* ...import.meta.glob('./services/*', { eager: true }),
9+
* ...pods({
10+
* ...import.meta.glob('./my-pods-prefix/**\/{route,template,controller}.{js,ts,gjs,gts}, { eager: true })
11+
* }),
12+
* }
13+
* ```
14+
*/
15+
export function pods(
16+
podModulePrefix: string,
17+
modules: Record<string, unknown>,
18+
) {}

0 commit comments

Comments
 (0)