@dword-design/base-config-web-extension 3.1.8 → 3.1.9

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -61,7 +61,7 @@ export default function () {
61
61
  }, {
62
62
  run: 'git archive --output=dist/firefox-sources.zip HEAD'
63
63
  }],
64
- prepare: () => Promise.all([fs.outputFile(pathLib.join(this.cwd, 'vite.config.js'), dedent`
64
+ prepare: () => Promise.all([fs.outputFile(pathLib.join(this.cwd, 'vite.config.js'), dedent` // TODO: resolve.alias shouldn't be necessary with existing babel config
65
65
  import vue from '${packageName`@vitejs/plugin-vue`}'
66
66
  import P from 'path'
67
67
  import { defineConfig } from '${packageName`vite`}'
@@ -75,6 +75,9 @@ export default function () {
75
75
  build: {
76
76
  outDir: P.join('dist', process.env.TARGET),
77
77
  },
78
+ resolve: {
79
+ alias: { '@': '.' },
80
+ },
78
81
  plugins: [
79
82
  vueBabel(),
80
83
  vue(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base-config-web-extension",
3
- "version": "3.1.8",
3
+ "version": "3.1.9",
4
4
  "repository": "dword-design/base-config-web-extension",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",
@@ -35,7 +35,7 @@
35
35
  "load-pkg": "^4.0.0",
36
36
  "lodash-es": "^4.17.21",
37
37
  "publish-browser-extension": "^2.3.1",
38
- "vite": "^5.4.19",
38
+ "vite": "^6.0.0",
39
39
  "vite-plugin-babel": "^1.3.1",
40
40
  "vite-plugin-eslint": "^1.8.1",
41
41
  "vite-plugin-web-extension": "^4.4.3",