Skip to content

Commit afeb8a5

Browse files
authored
chore: use text based Bun lockfile (#259)
1 parent 53a756c commit afeb8a5

7 files changed

+1642
-5488
lines changed

bun.lock

+1,635
Large diffs are not rendered by default.

bun.lockb

-295 KB
Binary file not shown.

bunfig.toml

-2
This file was deleted.

package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,12 @@
130130
"@hono/eslint-config": "^1.0.2",
131131
"@mdx-js/rollup": "^3.0.0",
132132
"@playwright/test": "^1.42.0",
133-
"@types/babel__generator": "^7",
134-
"@types/babel__traverse": "^7",
135133
"@types/node": "^20.10.5",
136134
"eslint": "^9.10.0",
137135
"glob": "^10.3.10",
138136
"happy-dom": "^15.11.6",
139137
"hono": "4.4.13",
140-
"np": "7.7.0",
138+
"np": "^10.2.0",
141139
"prettier": "^3.1.1",
142140
"publint": "^0.2.7",
143141
"tsup": "^8.1.0",
@@ -152,4 +150,4 @@
152150
"optionalDependencies": {
153151
"@rollup/rollup-linux-x64-gnu": "^4.9.6"
154152
}
155-
}
153+
}

src/vite/inject-importing-islands.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// @ts-expect-error don't use types
12
import _generate from '@babel/generator'
23
import { parse } from '@babel/parser'
34
import precinct from 'precinct'

src/vite/island-components.ts

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
// @ts-expect-error don't use types
12
import _generate from '@babel/generator'
23
import { parse } from '@babel/parser'
4+
// @ts-expect-error don't use types
35
import _traverse from '@babel/traverse'
46
import {
57
blockStatement,
@@ -77,6 +79,7 @@ export const transformJsxTags = (contents: string, componentName: string) => {
7779
let isTransformed = false
7880

7981
traverse(ast, {
82+
// @ts-expect-error path is not typed
8083
ExportNamedDeclaration(path) {
8184
if (path.node.declaration?.type === 'FunctionDeclaration') {
8285
// transform `export function NamedFunction() {}`
@@ -131,6 +134,7 @@ export const transformJsxTags = (contents: string, componentName: string) => {
131134
specifier.local.name = wrappedFunctionId.name
132135
}
133136
},
137+
// @ts-expect-error path is not typed
134138
ExportDefaultDeclaration(path) {
135139
const declarationType = path.node.declaration.type
136140
if (

0 commit comments

Comments
 (0)