Skip to content

Commit 736d808

Browse files
authored
Merge branch 'master' into starkNet
2 parents 784dfc9 + 78e33f7 commit 736d808

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

apps/remix-ide/src/app.js

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
'use strict'
22
import { RunTab, makeUdapp } from './app/udapp'
3+
import { RemixEngine } from './remixEngine'
34
import { RemixAppManager } from './remixAppManager'
5+
import { ThemeModule } from './app/tabs/theme-module'
6+
import { NetworkModule } from './app/tabs/network-module'
7+
import { Web3ProviderModule } from './app/tabs/web3-provider'
8+
import { SidePanel } from './app/components/side-panel'
9+
import { HiddenPanel } from './app/components/hidden-panel'
10+
import { VerticalIcons } from './app/components/vertical-icons'
11+
import { LandingPage } from './app/ui/landing-page/landing-page'
12+
import { MainPanel } from './app/components/main-panel'
13+
import { PermissionHandlerPlugin } from './app/plugins/permission-handler-plugin'
414

515
import { WalkthroughService } from './walkthroughService'
616

@@ -85,7 +95,7 @@ class AppComponent {
8595
const pluginLoader = self.appManager.pluginLoader
8696
self.panels = {}
8797
self.workspace = pluginLoader.get()
88-
self.engine = new (await import('./remixEngine')).RemixEngine
98+
self.engine = new RemixEngine()
8999
self.engine.register(appManager)
90100

91101
const matomoDomains = {
@@ -116,7 +126,7 @@ class AppComponent {
116126
// ----------------- gist service ---------------------------------
117127
self.gistHandler = new GistHandler()
118128
// ----------------- theme service ---------------------------------
119-
self.themeModule = new (await import('./app/tabs/theme-module')).ThemeModule()
129+
self.themeModule = new ThemeModule()
120130
Registry.getInstance().put({ api: self.themeModule, name: 'themeModule' })
121131

122132
// ----------------- editor service ----------------------------
@@ -149,9 +159,9 @@ class AppComponent {
149159
// service which fetch contract artifacts from sourve-verify, put artifacts in remix and compile it
150160
const fetchAndCompile = new FetchAndCompile()
151161
// ----------------- network service (resolve network id / name) -----
152-
const networkModule = new (await import('./app/tabs/network-module')).NetworkModule(blockchain)
162+
const networkModule = new NetworkModule(blockchain)
153163
// ----------------- represent the current selected web3 provider ----
154-
const web3Provider = new (await import('./app/tabs/web3-provider')).Web3ProviderModule(blockchain)
164+
const web3Provider = new Web3ProviderModule(blockchain)
155165
const hardhatProvider = new HardhatProvider(blockchain)
156166
// ----------------- convert offset to line/column service -----------
157167
const offsetToLineColumnConverter = new OffsetToLineColumnConverter()
@@ -182,7 +192,7 @@ class AppComponent {
182192
const configPlugin = new ConfigPlugin()
183193
self.layout = new Layout()
184194

185-
const permissionHandler = new (await import('./app/plugins/permission-handler-plugin')).PermissionHandlerPlugin()
195+
const permissionHandler = new PermissionHandlerPlugin()
186196

187197
self.engine.register([
188198
permissionHandler,
@@ -209,22 +219,22 @@ class AppComponent {
209219
])
210220

211221
// LAYOUT & SYSTEM VIEWS
212-
const appPanel = new (await import('./app/components/main-panel')).MainPanel()
222+
const appPanel = new MainPanel()
213223
Registry.getInstance().put({ api: self.mainview, name: 'mainview' })
214224
const tabProxy = new TabProxy(fileManager, editor)
215225
self.engine.register([appPanel, tabProxy])
216226

217227
// those views depend on app_manager
218-
self.menuicons = new (await import('./app/components/vertical-icons')).VerticalIcons()
219-
self.sidePanel = new (await import('./app/components/side-panel')).SidePanel()
220-
self.hiddenPanel = new (await import('./app/components/hidden-panel')).HiddenPanel()
228+
self.menuicons = new VerticalIcons()
229+
self.sidePanel = new SidePanel()
230+
self.hiddenPanel = new HiddenPanel()
221231

222232
const pluginManagerComponent = new PluginManagerComponent(
223233
appManager,
224234
self.engine
225235
)
226236
const filePanel = new FilePanel(appManager)
227-
const landingPage = new (await import('./app/ui/landing-page/landing-page')).LandingPage(
237+
const landingPage = new LandingPage(
228238
appManager,
229239
self.menuicons,
230240
fileManager,

apps/remix-ide/webpack.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ module.exports = config => {
2323
})
2424
]
2525
}
26+
27+
webpackConfig.output.chunkLoadTimeout = 600000
2628

2729
if (process.env.NODE_ENV === 'production') {
2830
return {

0 commit comments

Comments
 (0)