@justeattakeaway/pie-components-config 0.19.0 → 0.20.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 +1 -1
- package/vite.config.js +20 -15
package/package.json
CHANGED
package/vite.config.js
CHANGED
|
@@ -52,21 +52,26 @@ const sharedConfig = ({
|
|
|
52
52
|
exclude: ['**/node_modules/**'],
|
|
53
53
|
},
|
|
54
54
|
|
|
55
|
-
plugins:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
55
|
+
plugins: (() => {
|
|
56
|
+
const isWatchMode = process.argv.includes('--watch');
|
|
57
|
+
|
|
58
|
+
// Bypass DTS generation and visualization plugins in watch mode
|
|
59
|
+
return isWatchMode ? plugins : deepmerge(
|
|
60
|
+
[
|
|
61
|
+
dts({
|
|
62
|
+
insertTypesEntry: true,
|
|
63
|
+
outputDir: 'dist',
|
|
64
|
+
rollupTypes: true,
|
|
65
|
+
...dtsConfig,
|
|
66
|
+
}),
|
|
67
|
+
visualizer({
|
|
68
|
+
gzipSize: true,
|
|
69
|
+
brotliSize: true,
|
|
70
|
+
}),
|
|
71
|
+
],
|
|
72
|
+
plugins,
|
|
73
|
+
);
|
|
74
|
+
})(),
|
|
70
75
|
|
|
71
76
|
...rest,
|
|
72
77
|
});
|