mirror of
https://github.com/enso-org/enso.git
synced 2024-12-22 22:21:40 +03:00
bd3b778721
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.
9 lines
212 B
TypeScript
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 })
|