@dword-design/base-config-nuxt 3.2.6 → 3.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -115,7 +115,7 @@ export default async function () {
115
115
  failOnWarning: true,
116
116
  fix: true
117
117
  }], cssModulesModule, rawModule, i18nModule, bodyParserModule, [serverMiddlewareModule, {
118
- expressInstance: projectConfig.expressInstance
118
+ getExpress: projectConfig.getExpress
119
119
  }], packageName`@nuxtjs/axios`, axiosDynamicBaseurlModule, packageName`nuxt-svg-loader`, localeLinkModule, ...projectConfig.modules], map(module => () => this.addModule(module))(_ref2)));
120
120
  this.addTemplate({
121
121
  fileName: P.join('project', 'project-config.js'),
@@ -2,8 +2,9 @@ import babelConfig from '@dword-design/babel-config';
2
2
  import express from 'express';
3
3
  import mountFiles from 'express-mount-files';
4
4
  import P from 'path';
5
- export default function (options) {
6
- const app = options.expressInstance || express();
5
+ export default async function (options) {
6
+ var _options$getExpress;
7
+ const app = (await ((_options$getExpress = options.getExpress) === null || _options$getExpress === void 0 ? void 0 : _options$getExpress.call(options))) || express();
7
8
  app.use(mountFiles(P.join(this.options.srcDir, 'api'), {
8
9
  jitiOptions: {
9
10
  esmResolve: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base-config-nuxt",
3
- "version": "3.2.6",
3
+ "version": "3.2.7",
4
4
  "repository": "dword-design/base-config-nuxt",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",