Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V0.10.3 #60

Merged
merged 3 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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