mirror of
https://github.com/enso-org/enso.git
synced 2024-11-22 22:10:15 +03:00
Should fix #5969 The cause was the switch to `* as moduleName` namespace imports - `process.on` is missing from the namespace import, causing an error.
This commit is contained in:
parent
5f1539d531
commit
27639233c6
@ -21,9 +21,10 @@ const NAME = 'enso'
|
|||||||
* and conversely type errors may not mean they don't support ESM -
|
* and conversely type errors may not mean they don't support ESM -
|
||||||
* but we add those to the whitelist anyway otherwise we get type errors.
|
* but we add those to the whitelist anyway otherwise we get type errors.
|
||||||
* In particular, `string-length` supports ESM but its type definitions don't.
|
* In particular, `string-length` supports ESM but its type definitions don't.
|
||||||
* `yargs` and `react-hot-toast` are modules we explicitly want the default imports of. */
|
* `yargs` and `react-hot-toast` are modules we explicitly want the default imports of.
|
||||||
|
* `node:process` is here because `process.on` does not exist on the namespace import. */
|
||||||
const DEFAULT_IMPORT_ONLY_MODULES =
|
const DEFAULT_IMPORT_ONLY_MODULES =
|
||||||
'chalk|string-length|yargs|yargs\\u002Fyargs|sharp|to-ico|connect|morgan|serve-static|create-servers|electron-is-dev|fast-glob|esbuild-plugin-alias|esbuild-plugin-time|esbuild-plugin-yaml|opener'
|
'node:process|chalk|string-length|yargs|yargs\\u002Fyargs|sharp|to-ico|connect|morgan|serve-static|create-servers|electron-is-dev|fast-glob|esbuild-plugin-alias|esbuild-plugin-time|esbuild-plugin-yaml|opener'
|
||||||
const ALLOWED_DEFAULT_IMPORT_MODULES = `${DEFAULT_IMPORT_ONLY_MODULES}|react-hot-toast`
|
const ALLOWED_DEFAULT_IMPORT_MODULES = `${DEFAULT_IMPORT_ONLY_MODULES}|react-hot-toast`
|
||||||
const OUR_MODULES = 'enso-content-config|enso-common'
|
const OUR_MODULES = 'enso-content-config|enso-common'
|
||||||
const RELATIVE_MODULES =
|
const RELATIVE_MODULES =
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
import * as fs from 'node:fs/promises'
|
import * as fs from 'node:fs/promises'
|
||||||
import * as fsSync from 'node:fs'
|
import * as fsSync from 'node:fs'
|
||||||
import * as pathModule from 'node:path'
|
import * as pathModule from 'node:path'
|
||||||
import * as process from 'node:process'
|
import process from 'node:process'
|
||||||
|
|
||||||
import * as electron from 'electron'
|
import * as electron from 'electron'
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
import * as childProcess from 'node:child_process'
|
import * as childProcess from 'node:child_process'
|
||||||
import * as fs from 'node:fs/promises'
|
import * as fs from 'node:fs/promises'
|
||||||
import * as path from 'node:path'
|
import * as path from 'node:path'
|
||||||
import * as process from 'node:process'
|
import process from 'node:process'
|
||||||
|
|
||||||
import * as esbuild from 'esbuild'
|
import * as esbuild from 'esbuild'
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/** @file Shared utility functions. */
|
/** @file Shared utility functions. */
|
||||||
import * as fs from 'node:fs'
|
import * as fs from 'node:fs'
|
||||||
import * as path from 'node:path'
|
import * as path from 'node:path'
|
||||||
import * as process from 'node:process'
|
import process from 'node:process'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the environment variable value.
|
* Get the environment variable value.
|
||||||
|
Loading…
Reference in New Issue
Block a user