Commit e5afc390 authored by Tim Neutkens's avatar Tim Neutkens

Development: Only load createEnvDefinitions when used

parent eb602d4b
...@@ -66,7 +66,6 @@ import { ...@@ -66,7 +66,6 @@ import {
isStaticMetadataFile, isStaticMetadataFile,
} from '../../../lib/metadata/is-metadata-route' } from '../../../lib/metadata/is-metadata-route'
import { normalizeMetadataPageToRoute } from '../../../lib/metadata/get-metadata-route' import { normalizeMetadataPageToRoute } from '../../../lib/metadata/get-metadata-route'
import { createEnvDefinitions } from '../experimental/create-env-definitions'
import { JsConfigPathsPlugin } from '../../../build/webpack/plugins/jsconfig-paths-plugin' import { JsConfigPathsPlugin } from '../../../build/webpack/plugins/jsconfig-paths-plugin'
import { store as consoleStore } from '../../../build/output/store' import { store as consoleStore } from '../../../build/output/store'
import { import {
...@@ -1080,6 +1079,9 @@ async function startWatcher( ...@@ -1080,6 +1079,9 @@ async function startWatcher(
true true
) )
const createEnvDefinitions = (
require('../experimental/create-env-definitions') as typeof import('../experimental/create-env-definitions')
).createEnvDefinitions
await createEnvDefinitions({ await createEnvDefinitions({
distDir, distDir,
loadedEnvFiles: [ loadedEnvFiles: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment