Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

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

See [RFC #1132](https://rfcs.emberjs.com/id/1132-default-strict-resolver) for more.

## Installation

```
Expand Down
18 changes: 18 additions & 0 deletions src/pods.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* Adapts import.meta.glob pods' to the standard format for the strict resolver
*
* e.g.:
*
* ```js
* modules = {
* ...import.meta.glob('./services/*', { eager: true }),
* ...pods({
* ...import.meta.glob('./my-pods-prefix/**\/{route,template,controller}.{js,ts,gjs,gts}, { eager: true })
* }),
* }
* ```
*/
export function pods(
podModulePrefix: string,
modules: Record<string, unknown>,
) {}
Loading