Skip to content

Commit b0b2a77

Browse files
authored
fix(sandpack): prefer import over require for exports resolving (#8683)
1 parent 2411d84 commit b0b2a77

File tree

1 file changed

+1
-1
lines changed
  • packages/sandpack-core/src/resolver/utils

1 file changed

+1
-1
lines changed

packages/sandpack-core/src/resolver/utils/exports.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { normalizeAliasFilePath } from './alias';
22

33
// exports keys, sorted from high to low priority
4-
const EXPORTS_KEYS = ['browser', 'development', 'default', 'require', 'import'];
4+
const EXPORTS_KEYS = ['browser', 'development', 'default', 'import', 'require'];
55

66
type PackageExportType =
77
| string

0 commit comments

Comments
 (0)