@ditojs/build 3.0.0 → 3.1.0
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/package.json +6 -4
- package/src/vite.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditojs/build",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": "https://github.com/ditojs/dito/tree/main/packages/build",
|
|
6
6
|
"author": "Jürg Lehni <juerg@scratchdisk.com> (http://scratchdisk.com)",
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
".": "./src/index.js"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
|
-
"src/"
|
|
13
|
+
"src/",
|
|
14
|
+
"!src/**/*.test.js",
|
|
15
|
+
"!src/**/__snapshots__/"
|
|
14
16
|
],
|
|
15
17
|
"bin": {
|
|
16
18
|
"inline-assets": "./src/cli/inline-assets.js"
|
|
@@ -22,7 +24,7 @@
|
|
|
22
24
|
"node >= 18"
|
|
23
25
|
],
|
|
24
26
|
"dependencies": {
|
|
25
|
-
"@ditojs/utils": "^3.
|
|
27
|
+
"@ditojs/utils": "^3.1.0",
|
|
26
28
|
"@vitejs/plugin-vue": "^6.0.9",
|
|
27
29
|
"autoprefixer": "^10.6.1",
|
|
28
30
|
"mime": "^4.1.0",
|
|
@@ -36,5 +38,5 @@
|
|
|
36
38
|
"vite": "^8.3.2",
|
|
37
39
|
"vue": "^3.5.43"
|
|
38
40
|
},
|
|
39
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "97314265c5cbac6a248d7350f43fea8ea92b995f"
|
|
40
42
|
}
|
package/src/vite.js
CHANGED
|
@@ -10,7 +10,9 @@ export function defineViteConfig({
|
|
|
10
10
|
vue = false,
|
|
11
11
|
build = true,
|
|
12
12
|
minify = !process.argv.includes('--watch'),
|
|
13
|
-
|
|
13
|
+
// Inline source maps for watch builds, e.g. when linked into an app during
|
|
14
|
+
// development, but none in published builds, to keep the packages small.
|
|
15
|
+
sourcemap = minify ? false : 'inline',
|
|
14
16
|
externals: {
|
|
15
17
|
include = [],
|
|
16
18
|
exclude = []
|