We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 725b255 commit e04a932Copy full SHA for e04a932
packages/app/src/sandbox/eval/utils/resolve-utils.ts
@@ -1,7 +1,7 @@
1
import { PackageJSON } from '@codesandbox/common/lib/types';
2
3
export function packageFilter(p: PackageJSON) {
4
- if (!p.main && p.module) {
+ if (p.module) {
5
// eslint-disable-next-line
6
p.main = p.module;
7
}
0 commit comments