From e48f3fed4b3131978154b5386698a2e059ad89da Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Mon, 13 Feb 2023 10:59:17 -0500 Subject: [PATCH] tmp fix --- packages/astro/src/core/app/dev.ts | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/packages/astro/src/core/app/dev.ts b/packages/astro/src/core/app/dev.ts index ae6010703..303da2c78 100644 --- a/packages/astro/src/core/app/dev.ts +++ b/packages/astro/src/core/app/dev.ts @@ -50,7 +50,11 @@ export class DevApp extends App { }, pageMap: new Map(), renderers: [], - entryModules: {}, + entryModules: new Proxy({}, { + get(target, key) { + return key; + } + }), assets: new Set(), propagation: new Map(), trailingSlash: userConfig?.trailingSlash ?? 'ignore' @@ -80,16 +84,18 @@ export class DevApp extends App { this.#env = null; } - const configResult = await openConfig({ - cmd: 'dev', - logging, - }); - const params: CreateContainerParams = { ...this.#createContainerParams, - settings: createSettings(configResult.astroConfig), }; + if(!this.#createContainerParams.userConfig) { + const configResult = await openConfig({ + cmd: 'dev', + logging, + }); + params.settings = createSettings(configResult.astroConfig); + } + const container = this.container = await createContainer(params); this.#manifest.trailingSlash = container.settings.config.trailingSlash;