mirror of
https://github.com/enso-org/enso.git
synced 2024-12-11 10:17:02 +03:00
079b1eed9d
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.
22 lines
450 B
TypeScript
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
|
|
}
|