From f90110af269bc773a3e316c54e858ab71adf50a0 Mon Sep 17 00:00:00 2001 From: Jonas Galvez Date: Sat, 27 Oct 2018 19:02:43 -0300 Subject: [PATCH] fix: nuxt/config imports/exports (#4217) --- packages/common/src/options.js | 3 +-- packages/config/src/index.js | 4 +--- packages/core/src/renderer.js | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/common/src/options.js b/packages/common/src/options.js index d6e918303e..795cf6c666 100644 --- a/packages/common/src/options.js +++ b/packages/common/src/options.js @@ -5,8 +5,7 @@ import defaults from 'lodash/defaults' import pick from 'lodash/pick' import isObject from 'lodash/isObject' import consola from 'consola' -// eslint-disable-next-line -import { default as NuxtConfig, Modes } from '@nuxt/config' +import { NuxtConfig, Modes } from '@nuxt/config' import { isPureObject, isUrl, guardDir, isString } from './utils' // hasValue utility diff --git a/packages/config/src/index.js b/packages/config/src/index.js index e8406c6ab3..e632c83881 100644 --- a/packages/config/src/index.js +++ b/packages/config/src/index.js @@ -1,4 +1,3 @@ -import NuxtConfig from './config' // Export individual bundles for easier access export { default as Modes } from './modes' @@ -7,5 +6,4 @@ export { default as messages } from './config/messages' export { default as render } from './config/render' export { default as router } from './config/router' export { default as server } from './config/server' - -export default NuxtConfig +export { default as NuxtConfig } from './config' diff --git a/packages/core/src/renderer.js b/packages/core/src/renderer.js index c783ac7885..7726209da6 100644 --- a/packages/core/src/renderer.js +++ b/packages/core/src/renderer.js @@ -10,7 +10,7 @@ import launchMiddleware from 'launch-editor-middleware' import consola from 'consola' import { isUrl, timeout, waitFor, determineGlobals } from '@nuxt/common' -import NuxtConfig from '@nuxt/config' +import { NuxtConfig } from '@nuxt/config' import MetaRenderer from './meta' import errorMiddleware from './middleware/error'