Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
yejimeiming committed Aug 26, 2023
1 parent 9072b3c commit 49e77ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/__snapshots__/exports.js
@@ -1,4 +1,4 @@
/* [vite-plugin-commonjs] export-runtime-S */ var module = { exports: {} }; var exports = module.exports; /* [vite-plugin-commonjs] export-runtime-E *//* [vite-plugin-commonjs] import-hoist-S */ import * as __CJS__import__0__ from './dynamic'; /* [vite-plugin-commonjs] import-hoist-E */
/* [vite-plugin-commonjs] export-runtime-S */ var module = { exports: {} }; var exports = module.exports; /* [vite-plugin-commonjs] export-runtime-E *//* [vite-plugin-commonjs] import-hoist-S */ import * as __CJS__import__0__ from "./dynamic"; /* [vite-plugin-commonjs] import-hoist-E */
const { hello, world } = __CJS__import__0__.default || __CJS__import__0__

// ❌ `exports` exported members are dynamic.
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/__snapshots__/main.ts
@@ -1,4 +1,4 @@
/* [vite-plugin-commonjs] import-hoist-S */ import * as __CJS__import__0__ from './exports'; /* [vite-plugin-commonjs] import-hoist-E */const { msg: message } = __CJS__import__0__.default || __CJS__import__0__;
/* [vite-plugin-commonjs] import-hoist-S */ import * as __CJS__import__0__ from "./exports"; /* [vite-plugin-commonjs] import-hoist-E */const { msg: message } = __CJS__import__0__.default || __CJS__import__0__;
import cjs from "./cjs";
document.querySelector("#app").innerHTML = `
<pre>
Expand Down

0 comments on commit 49e77ca

Please sign in to comment.