Skip to content

Commit faeab3b

Browse files
committed
worker.App: onRegisterNeoConfig() => add support for dist/esm #6724
1 parent dece7ea commit faeab3b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/worker/App.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -433,15 +433,15 @@ class App extends Base {
433433
onRegisterNeoConfig(msg) {
434434
super.onRegisterNeoConfig(msg);
435435

436-
let config = Neo.config,
437-
{data} = msg,
438-
url = 'resources/theme-map.json';
436+
let {config} = Neo,
437+
{data} = msg,
438+
url = 'resources/theme-map.json';
439439

440440
Neo.windowConfigs = Neo.windowConfigs || {};
441441

442442
Neo.windowConfigs[data.windowId] = data;
443443

444-
if (config.environment === 'development') {
444+
if (config.environment === 'development' || config.environment === 'dist/esm') {
445445
url = `../../${url}`
446446
}
447447

0 commit comments

Comments
 (0)