Skip to content

Commit

Permalink
Merge pull request #60 from vite-plugin/v0.10.3
Browse files Browse the repository at this point in the history
V0.10.3
  • Loading branch information
yejimeiming authored Sep 16, 2024
2 parents 4f0a307 + 26eddb4 commit 2d88ff9
Show file tree
Hide file tree
Showing 6 changed files with 902 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,6 @@ dist

package-lock.json
pnpm-lock.yaml
yarn.lock
# yarn.lock

/types
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.10.3 (2023-09-16)

- e369497 chore: bump deps
- 7c9ee77 fix: works with `@vitejs/plugin-vue2` #49

## 0.10.2 (2023-09-15)

- 7704cd4 chore: add comments
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vite-plugin-commonjs",
"version": "0.10.2",
"version": "0.10.3",
"description": "A pure JavaScript implementation of CommonJs",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand All @@ -26,18 +26,18 @@
"prepublishOnly": "npm run build && npm run test"
},
"dependencies": {
"acorn": "^8.8.2",
"fast-glob": "^3.2.12",
"magic-string": "^0.30.1",
"vite-plugin-dynamic-import": "^1.5.0"
"acorn": "^8.12.1",
"magic-string": "^0.30.11",
"vite-plugin-dynamic-import": "^1.6.0"
},
"devDependencies": {
"@types/node": "^18.16.2",
"node-fetch": "^3.3.1",
"typescript": "^4.9.4",
"vite": "^4.3.3",
"@types/node": "^22.5.2",
"fast-glob": "^3.3.2",
"node-fetch": "^3.3.2",
"typescript": "^5.6.2",
"vite": "^4.4.5",
"vite-plugin-utils": "^0.4.3",
"vitest": "^0.30.1"
"vitest": "^2.1.1"
},
"keywords": [
"vite",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ async function transformCommonjs({
].join(' '))
}
if (runtimes.length) {
ms.append(runtimes.join('\n'))
ms.append(/* #49 */'\n' + runtimes.join('\n'))
}
}

Expand Down
1 change: 1 addition & 0 deletions test/fixtures/__snapshots__/dynamic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
}
export const hello = `[dynamic.tsx] ${load("hello.cjs").default}`;
export const world = `[dynamic.tsx] ${load("world.cjs").default}`;

function __matchRequireRuntime0__(path) {
switch(path) {
case '@/module-exports/hello':
Expand Down
Loading

0 comments on commit 2d88ff9

Please sign in to comment.