Skip to content

Commit

Permalink
Include .mjs file extensions in resolveModuleIds.ts.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Jun 23, 2021
1 parent 4d048c0 commit 9321c46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/resolveModuleIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ function normalizeId(id: string, file: string) {
const basedir = path.dirname(file);
const absPath = resolve.sync(id, {
basedir,
extensions: [".mjs", ".js"],
packageFilter(pkg) {
return pkg.module ? {
...pkg,
Expand Down

0 comments on commit 9321c46

Please sign in to comment.