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 fc41979 commit bcf96c7Copy full SHA for bcf96c7
tests/fixtures.ts
@@ -260,7 +260,9 @@ export const files = {
260
'pkg-commonjs': {
261
'package.json': createPackageJson({
262
type: 'commonjs',
263
+ main: './index.js',
264
}),
265
+ 'index.ts': 'throw new Error("should prefer .js over .ts in node_modules")',
266
'index.js': syntaxLowering,
267
'ts.ts': syntaxLowering,
268
'cjs.js': `
@@ -282,6 +284,7 @@ export const files = {
282
284
'#*': './*',
283
285
},
286
287
288
'index.js': `${syntaxLowering}\nexport * from "./empty-export"`,
289
'empty-export/index.js': 'export {}',
290
'ts.ts': `${syntaxLowering}\nexport * from "#empty.js"`,
0 commit comments