@dword-design/base-config-nuxt 5.0.3 → 5.0.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.
package/dist/config.js CHANGED
@@ -1,7 +1,5 @@
1
- import dotenv from '@dword-design/dotenv-json-extended';
2
1
  import jitiBabelTransform from '@dword-design/jiti-babel-transform';
3
2
  import jiti from 'jiti';
4
- dotenv.config();
5
3
  let config;
6
4
  try {
7
5
  const jitiInstance = jiti(process.cwd(), {
package/dist/index.js CHANGED
@@ -19,7 +19,7 @@ const __dirname = P.dirname(fileURLToPath(import.meta.url));
19
19
  const _require = createRequire(import.meta.url);
20
20
  const isInNodeModules = __dirname.split(P.sep).includes('node_modules');
21
21
  export default {
22
- allowedMatches: ['.stylelintrc.json', 'server/api/**/*.js', 'server/plugins/**/*.js', 'server/routes/**/*.js', 'server/middleware/**/*.js', 'assets', 'components', 'content', 'i18n', 'layouts', 'middleware', 'model', 'modules', 'config.js', 'pages', 'plugins', 'public', 'store', 'types'],
22
+ allowedMatches: ['.stylelintrc.json', 'server/api/**/*.js', 'server/plugins/**/*.js', 'server/routes/**/*.js', 'server/middleware/**/*.js', 'assets', 'components', 'composables', 'content', 'i18n', 'layouts', 'middleware', 'model', 'modules', 'config.js', 'pages', 'plugins', 'public', 'store', 'types'],
23
23
  commands: {
24
24
  analyze,
25
25
  dev,
@@ -3,6 +3,7 @@ import { babel as rollupPluginBabel } from '@rollup/plugin-babel';
3
3
  import { parseVueRequest } from '@vitejs/plugin-vue';
4
4
  import { parse } from '@vue/compiler-sfc';
5
5
  import packageName from 'depcheck-package-name';
6
+ import vitePluginBabel from 'vite-plugin-babel';
6
7
  import vueSfcDescriptorToString from 'vue-sfc-descriptor-to-string';
7
8
  import config from "./config.js";
8
9
  // import expressModule from './modules/express/index.js'
@@ -92,7 +93,7 @@ export default {
92
93
  }
93
94
  return code;
94
95
  }
95
- }],
96
+ }, vitePluginBabel()],
96
97
  vue: {
97
98
  template: {
98
99
  transformAssetUrls: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base-config-nuxt",
3
- "version": "5.0.3",
3
+ "version": "5.0.5",
4
4
  "repository": "dword-design/base-config-nuxt",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",
@@ -54,6 +54,7 @@
54
54
  "output-files": "^2.0.0",
55
55
  "require-package-name": "^2.0.1",
56
56
  "stylelint": "^15.0.0",
57
+ "vite-plugin-babel": "^1.1.3",
57
58
  "vite-svg-loader": "^4.0.0",
58
59
  "vue-sfc-descriptor-to-string": "npm:@dword-design/vue-sfc-descriptor-to-string"
59
60
  },