@dword-design/base-config-nuxt 3.2.3 → 3.2.5

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,12 +1,21 @@
1
+ import babelConfig from '@dword-design/babel-config';
1
2
  import filter from "@dword-design/functions/dist/filter.js";
2
3
  import first from "@dword-design/functions/dist/first.js";
3
4
  import map from "@dword-design/functions/dist/map.js";
5
+ import jiti from 'jiti';
4
6
  import P from 'path';
5
- export default (async path => {
7
+ export default (path => {
6
8
  try {
7
9
  if (P.basename(path) === 'nuxt.config.js') {
8
10
  var _ref, _modules;
9
- const config = (await import(path)).default;
11
+ const jitiInstance = jiti(process.cwd(), {
12
+ esmResolve: true,
13
+ interopDefault: true,
14
+ transformOptions: {
15
+ babel: babelConfig
16
+ }
17
+ });
18
+ const config = jitiInstance(`./nuxt.config.js`);
10
19
  const modules = [...(config.modules || []), ...(config.buildModules || [])];
11
20
  return _ref = (_modules = modules, map(mod => {
12
21
  var _concat;
@@ -3,6 +3,7 @@ import projectModule from "./modules/project/index.js";
3
3
  export default (() => {
4
4
  dotenv.config();
5
5
  return {
6
- modules: [projectModule]
6
+ modules: [projectModule],
7
+ telemetry: true
7
8
  };
8
9
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base-config-nuxt",
3
- "version": "3.2.3",
3
+ "version": "3.2.5",
4
4
  "repository": "dword-design/base-config-nuxt",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",