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 b484d88 commit 175ea9dCopy full SHA for 175ea9d
test/index.test.ts
@@ -362,18 +362,19 @@ describe('esbuild plugin', () => {
362
],
363
})
364
// Following code is expected
365
- // esbuild doesn't emit json code as es module for now
366
- // So you will need @rollup/plugin-commonjs
367
expect(output[0].code).toMatchInlineSnapshot(`
368
- "module.exports = {
369
- foo: true
+ "var foo = true;
+ var foo_default = {
+ foo
370
};
371
372
- var foo = /*#__PURE__*/Object.freeze({
373
- __proto__: null
+ var foo$1 = /*#__PURE__*/Object.freeze({
+ __proto__: null,
+ default: foo_default,
374
+ foo: foo
375
});
376
- console.log(foo);
377
+ console.log(foo$1);
378
"
379
`)
380
0 commit comments