@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.
- package/dist/depcheck-special.js +3 -5
- package/dist/modules/project/index.js +2 -4
- package/dist/modules/project/modules/body-parser.js +3 -1
- package/dist/modules/project/modules/i18n/missing-nuxt-i18n-head-error.js +1 -1
- package/dist/modules/project/modules/server-middleware/index.js +2 -4
- package/package.json +3 -3
package/dist/depcheck-special.js
CHANGED
|
@@ -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
|
-
|
|
14
|
-
babel: babelConfig
|
|
15
|
-
}
|
|
13
|
+
transform: jitiBabelTransform
|
|
16
14
|
});
|
|
17
|
-
const config = jitiInstance(
|
|
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
|
-
|
|
43
|
-
babel: babelConfig
|
|
44
|
-
}
|
|
42
|
+
transform: jitiBabelTransform
|
|
45
43
|
});
|
|
46
44
|
localConfig = jitiInstance('./nuxt.config.js');
|
|
47
45
|
} catch (error) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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
|
-
|
|
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.
|
|
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": "
|
|
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",
|