enso/app/ide-desktop/lib/content/start.ts
Michał Wawrzyniec Urbańczyk bd3b778721
Replace webpack with esbuild (#3592)
This PR replaces webpack with esbuild, as our bundler.

The change leads to out-of-the-box ~5x improvement in bundling times, reducing the latency in watch-based workflows. 
Along with this a new development server (with live reload capacity) has been introduced to support watch command.

[ci no changelog needed]

### Important Notes
* workflow for checking docs has been removed because it was using outdated prettier version and caused troubles; while the same check is performed in a better way by the GUI/Lint job.
* introduced little more typescript in the scripts in place of js, usually with minimal changes.
2022-08-10 03:41:44 +02:00

9 lines
212 B
TypeScript

import bundler from './esbuild-config.js'
// @ts-ignore
import * as server from 'enso-gui-server'
await bundler.bundle()
const root = bundler.output_path
const assets = root
await server.start({ root, assets })