Skip to content

Commit

Permalink
before esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Jan 4, 2025
1 parent 10b850a commit ec9e44e
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
12 changes: 12 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"filter-classes": "node filterTailwindClasses.js"
},
"devDependencies": {
"@codesandbox/sandpack-client": "^2.19.8",
"@floating-ui/core": "^1.3.1",
"@hey-api/openapi-ts": "^0.43.0",
"@playwright/test": "^1.34.3",
"@codesandbox/sandpack-client": "^2.19.8",
"@rgossiaux/svelte-headlessui": "^2.0.0",
"@sveltejs/adapter-static": "^3.0.6",
"@sveltejs/kit": "^2.9.0",
Expand Down Expand Up @@ -114,6 +114,7 @@
"date-fns": "^2.30.0",
"diff": "^5.1.0",
"driver.js": "^1.3.0",
"esbuild-wasm": "0.24.2",
"esm-env": "^1.0.0",
"fast-equals": "^5.0.1",
"graphql": "^16.7.1",
Expand Down
15 changes: 15 additions & 0 deletions frontend/src/lib/components/raw_apps/EsbuildBundler.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import * as esbuild from 'esbuild-wasm'

let initialized = false

export async function initializeEsbuild() {
if (!initialized) {
await esbuild.initialize({
wasmURL: 'https://unpkg.com/esbuild-wasm/esbuild.wasm', // Use a CDN for simplicity
worker: true
})
initialized = true
}
}

export { esbuild }
1 change: 0 additions & 1 deletion frontend/src/lib/components/raw_apps/RawAppEditor.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,6 @@ export function getJob(id: string): Promise<Job>
onPackageJsonChange()
}}
on:change={() => {
console.log('bar')
timeout && clearTimeout(timeout)
timeout = setTimeout(() => {
onContentChange()
Expand Down

0 comments on commit ec9e44e

Please sign in to comment.