Skip to content

Commit 9546866

Browse files
committed
fix jsx runtime import; update esbuild
1 parent fc5dd2c commit 9546866

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

bun.lockb

-590 Bytes
Binary file not shown.

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"version": "0.1.0-experimental.0",
55
"exports": {
66
".": "./src/index.ts",
7-
"./bun": "./src/server/bun.ts"
7+
"./bun": "./src/server/bun.ts",
8+
"./jsx-runtime": "./src/jsx-runtime.ts",
9+
"./jsx-dev-runtime": "./src/jsx-dev-runtime.ts"
810
},
911
"imports": {
1012
"#cherry-cola": "./src/index.ts",
@@ -32,11 +34,7 @@
3234
"@types/babel__core": "^7.20.0",
3335
"@types/babel__traverse": "^7.18.3",
3436
"@types/jest": "^29.2.0",
35-
"autoprefixer": "^10.4.12",
36-
"browserslist": "^4.21.4",
3737
"bun-types": "^0.1.11",
38-
"esbuild": "^0.15.10",
39-
"sass": "^1.55.0",
4038
"typescript": "^4.9.5",
4139
"ws": "^8.9.0"
4240
},
@@ -45,9 +43,12 @@
4543
"@babel/generator": "^7.21.3",
4644
"@babel/parser": "^7.19.3",
4745
"@babel/traverse": "^7.21.2",
46+
"autoprefixer": "^10.4.12",
4847
"babel-plugin-minify-dead-code-elimination": "^0.5.2",
4948
"babel-plugin-remove-unused-import": "^2.1.1",
49+
"browserslist": "^4.21.4",
5050
"chalk": "^5.1.2",
51+
"esbuild": "^0.17.12",
5152
"escape-html": "^1.0.3",
5253
"express": "^4.18.1",
5354
"glob": "^9.2.1",
@@ -60,6 +61,7 @@
6061
"postcss": "^8.4.21",
6162
"postcss-modules": "^6.0.0",
6263
"pretty-error": "^4.0.0",
64+
"sass": "^1.55.0",
6365
"shrink-ray-current": "^4.1.3",
6466
"stylus": "^0.59.0",
6567
"uuid": "^9.0.0",

src/compiler/bundler.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,7 @@ async function startEsbuild(refsAndTemplatesFile: string) {
142142
}),
143143
imageLoader({fs: hfs, emit: true, path: outputPath}) as Plugin,
144144
useFs({fs: hfs, defaultImports: packageJson.imports}),
145-
],
146-
watch: process.env.BUN_ENV === 'development' && {
147-
async onRebuild(error, result) {
148-
if (error) return console.log(pe.render(error))
149-
handleResult(result)
150-
},
151-
},
145+
]
152146
}).then(handleResult)
153147

154148
function handleResult(result: BuildResult) {

0 commit comments

Comments
 (0)