@dword-design/base-config-nuxt 3.2.15 → 3.2.17

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.
@@ -1,7 +1,7 @@
1
- import babelConfig from '@dword-design/babel-config';
2
1
  import filter from "@dword-design/functions/dist/filter.js";
3
2
  import first from "@dword-design/functions/dist/first.js";
4
3
  import map from "@dword-design/functions/dist/map.js";
4
+ import jitiBabelTransform from '@dword-design/jiti-babel-transform';
5
5
  import jiti from 'jiti';
6
6
  import P from 'path';
7
7
  export default (path => {
@@ -10,11 +10,9 @@ export default (path => {
10
10
  const jitiInstance = jiti(process.cwd(), {
11
11
  esmResolve: true,
12
12
  interopDefault: true,
13
- transformOptions: {
14
- babel: babelConfig
15
- }
13
+ transform: jitiBabelTransform
16
14
  });
17
- const config = jitiInstance(`./nuxt.config.js`);
15
+ const config = jitiInstance('./nuxt.config.js');
18
16
  const modules = [...(config.modules || []), ...(config.buildModules || [])];
19
17
  return _ref = (_modules = modules, map(mod => {
20
18
  var _concat;
@@ -1,8 +1,8 @@
1
- import babelConfig from '@dword-design/babel-config';
2
1
  import join from "@dword-design/functions/dist/join.js";
3
2
  import keys from "@dword-design/functions/dist/keys.js";
4
3
  import map from "@dword-design/functions/dist/map.js";
5
4
  import omit from "@dword-design/functions/dist/omit.js";
5
+ import jitiBabelTransform from '@dword-design/jiti-babel-transform';
6
6
  import packageName from 'depcheck-package-name';
7
7
  import jiti from 'jiti';
8
8
  import { createRequire } from 'module';
@@ -39,9 +39,7 @@ export default async function () {
39
39
  const jitiInstance = jiti(this.options.rootDir, {
40
40
  esmResolve: true,
41
41
  interopDefault: true,
42
- transformOptions: {
43
- babel: babelConfig
44
- }
42
+ transform: jitiBabelTransform
45
43
  });
46
44
  localConfig = jitiInstance('./nuxt.config.js');
47
45
  } catch (error) {
@@ -1,4 +1,6 @@
1
1
  import express from 'express';
2
2
  export default function () {
3
- this.options.serverMiddleware.push(express.json());
3
+ this.options.serverMiddleware.push(...[express.json(), express.urlencoded({
4
+ extended: false
5
+ })]);
4
6
  }
@@ -4,7 +4,7 @@ export default class extends Error {
4
4
  constructor(layoutFile) {
5
5
  super(endent`
6
6
  You have to implement $nuxtI18nHead in ${P.join('layouts', layoutFile)} like this to make sure that i18n metadata are generated:
7
-
7
+
8
8
  <script>
9
9
  export default {
10
10
  head () {
@@ -1,4 +1,4 @@
1
- import babelConfig from '@dword-design/babel-config';
1
+ import jitiBabelTransform from '@dword-design/jiti-babel-transform';
2
2
  import express from 'express';
3
3
  import mountFiles from 'express-mount-files';
4
4
  import P from 'path';
@@ -14,9 +14,7 @@ export default async function (options) {
14
14
  jitiOptions: {
15
15
  esmResolve: true,
16
16
  interopDefault: true,
17
- transformOptions: {
18
- babel: babelConfig
19
- }
17
+ transform: jitiBabelTransform
20
18
  },
21
19
  paramChar: '_'
22
20
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base-config-nuxt",
3
- "version": "3.2.15",
3
+ "version": "3.2.17",
4
4
  "repository": "dword-design/base-config-nuxt",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",
@@ -25,11 +25,11 @@
25
25
  "dependencies": {
26
26
  "@babel/core": "^7.16.0",
27
27
  "@babel/traverse": "^7.16.3",
28
- "@dword-design/babel-config": "^2.1.1",
29
28
  "@dword-design/depcheck-parser-sass": "^3.0.0",
30
29
  "@dword-design/dotenv-json-extended": "^2.0.0",
31
30
  "@dword-design/eslint-config": "^3.0.1",
32
31
  "@dword-design/functions": "^4.0.0",
32
+ "@dword-design/jiti-babel-transform": "^1.0.11",
33
33
  "@dword-design/stylelint-config": "^2.0.0",
34
34
  "@nuxtjs/axios": "^5.10.3",
35
35
  "@nuxtjs/eslint-module": "^3.0.0",
@@ -42,7 +42,7 @@
42
42
  "express-mount-files": "npm:@dword-design/express-mount-files",
43
43
  "fs-extra": "^11.1.0",
44
44
  "globby": "^13.1.3",
45
- "jiti": "npm:@dword-design/jiti",
45
+ "jiti": "^1.18.2",
46
46
  "nuxt": "~2.16.0",
47
47
  "nuxt-babel-runtime": "^3.0.0",
48
48
  "nuxt-basic-auth-module": "^1.4.1",