diff --git a/README.md b/README.md index 6236488..8297312 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/src/pods.ts b/src/pods.ts new file mode 100644 index 0000000..c9fc494 --- /dev/null +++ b/src/pods.ts @@ -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, +) {}