enso/app/ide-desktop/lib/content/bundle.ts
somebody1234 079b1eed9d
Fix some dashboard issues (#6668)
Fixes some of #6662

Issues addressed:
- `ide watch` and `gui watch` should now use the desktop platform
- error screen should now be shown when passing invalid options
- password (both creating password when registering, and resetting password) should now warn on invalid input

# Important Notes
Instead of checking whether `location.hostname === 'localhost'`, I've opted to use a constant defined by the build tool instead. This is to make it easier to merge the cloud IDE and desktop IDE entrypoints in the future, since it would be able to simply set `platform: Platform.cloud` in the build config.
2023-05-26 10:17:03 +00:00

22 lines
450 B
TypeScript

/** @file Entry point for the bundler. */
import * as esbuild from 'esbuild'
import * as bundler from './esbuild-config'
// =======================
// === Generate bundle ===
// =======================
try {
void esbuild.build(
bundler.bundleOptions({
devMode: false,
supportsLocalBackend: true,
supportsDeepLinks: true,
})
)
} catch (error) {
console.error(error)
throw error
}