WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 10421f2

Browse files
committed
fix: move require before import
1 parent eb45c79 commit 10421f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/exports.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ function genSubExport(
238238
if (typeof devExports === 'string') {
239239
value[devExports] = src
240240
}
241-
if (es) value[dualFormat ? 'import' : 'default'] = es
242241
if (cjs) value[dualFormat ? 'require' : 'default'] = cjs
242+
if (es) value[dualFormat ? 'import' : 'default'] = es
243243
}
244244

245245
return value

0 commit comments

Comments
 (0)