You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expectedCompileLog: `entry-default.js: DEBUG: Import "default" will always be undefined because there is no matching export in "foo/no-side-effects.mjs"
1793
+
expectedCompileLog: `entry-default.js: WARNING: Import "default" will always be undefined because there is no matching export in "foo/no-side-effects.mjs"
1802
1794
entry-nope.js: WARNING: Import "nope" will always be undefined because the file "foo/no-side-effects.js" has no exports
1803
1795
entry-nope.js: WARNING: Import "nope" will always be undefined because the file "foo/no-side-effects.mjs" has no exports
1804
1796
entry-nope.js: WARNING: Import "nope" will always be undefined because the file "foo/no-side-effects.cjs" has no exports
Copy file name to clipboardexpand all lines: scripts/end-to-end-tests.js
+24
Original file line number
Diff line number
Diff line change
@@ -2229,13 +2229,29 @@ tests.push(
2229
2229
if (ns.default !== void 0) throw 'fail'
2230
2230
`,
2231
2231
'node_modules/pkg/index.mjs': ``,
2232
+
},{
2233
+
expectedStderr: `▲ [WARNING] Import "default" will always be undefined because there is no matching export in "node_modules/pkg/index.mjs" [import-is-undefined]
2234
+
2235
+
in.js:3:13:
2236
+
3 │ if (ns.default !== void 0) throw 'fail'
2237
+
╵ ~~~~~~~
2238
+
2239
+
`,
2232
2240
}),
2233
2241
test(['in.js','--outfile=node.js','--bundle'],{
2234
2242
'in.js': `
2235
2243
import * as ns from 'pkg/index.mts'
2236
2244
if (ns.default !== void 0) throw 'fail'
2237
2245
`,
2238
2246
'node_modules/pkg/index.mts': ``,
2247
+
},{
2248
+
expectedStderr: `▲ [WARNING] Import "default" will always be undefined because there is no matching export in "node_modules/pkg/index.mts" [import-is-undefined]
2249
+
2250
+
in.js:3:13:
2251
+
3 │ if (ns.default !== void 0) throw 'fail'
2252
+
╵ ~~~~~~~
2253
+
2254
+
`,
2239
2255
}),
2240
2256
test(['in.js','--outfile=node.js','--bundle'],{
2241
2257
'in.js': `
@@ -2256,6 +2272,14 @@ tests.push(
2256
2272
"type": "module"
2257
2273
}`,
2258
2274
'node_modules/pkg/index.js': ``,
2275
+
},{
2276
+
expectedStderr: `▲ [WARNING] Import "default" will always be undefined because there is no matching export in "node_modules/pkg/index.js" [import-is-undefined]
0 commit comments