@promoboxx/react-scripts-vite 0.2.1-vitest.1 → 0.2.1-vitest.2
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/cjs/viteConfig.d.ts
CHANGED
|
@@ -11,8 +11,9 @@ interface ReactScriptsViteOptions {
|
|
|
11
11
|
aliasHq?: false;
|
|
12
12
|
envCompatible?: false | Parameters<typeof envCompatible>[1];
|
|
13
13
|
pwa?: false | Parameters<typeof VitePWA>[0];
|
|
14
|
-
checker
|
|
14
|
+
checker?: false | Parameters<typeof pluginChecker>[0];
|
|
15
15
|
envPrefix?: string;
|
|
16
|
+
splitVendorChunkPlugin?: false;
|
|
16
17
|
}
|
|
17
18
|
declare const pluginOptions: ReactScriptsViteOptions;
|
|
18
19
|
declare const viteConfig: UserConfigFn;
|
package/dist/cjs/viteConfig.js
CHANGED
|
@@ -37,6 +37,7 @@ module.exports = __toCommonJS(viteConfig_exports);
|
|
|
37
37
|
var import_fs = __toESM(require("fs"));
|
|
38
38
|
var import_plugin_react = __toESM(require("@vitejs/plugin-react"));
|
|
39
39
|
var import_alias_hq = __toESM(require("alias-hq"));
|
|
40
|
+
var import_vite = require("vite");
|
|
40
41
|
var import_vite_plugin_checker = __toESM(require("vite-plugin-checker"));
|
|
41
42
|
var import_vite_plugin_environment = __toESM(require("vite-plugin-environment"));
|
|
42
43
|
var import_vite_plugin_pwa = require("vite-plugin-pwa");
|
|
@@ -84,7 +85,8 @@ var viteConfig = () => {
|
|
|
84
85
|
// PWA.
|
|
85
86
|
pluginOptions.pwa === false ? null : (0, import_vite_plugin_pwa.VitePWA)(pluginOptions.pwa),
|
|
86
87
|
// Check for issues.
|
|
87
|
-
process.env.NODE_ENV === "test" || pluginOptions.checker === false ? null : (0, import_vite_plugin_checker.default)(pluginOptions.checker)
|
|
88
|
+
process.env.NODE_ENV === "test" || pluginOptions.checker === false ? null : (0, import_vite_plugin_checker.default)(pluginOptions.checker || {}),
|
|
89
|
+
pluginOptions.splitVendorChunkPlugin === false ? null : (0, import_vite.splitVendorChunkPlugin)()
|
|
88
90
|
],
|
|
89
91
|
server: {
|
|
90
92
|
open: true,
|
|
@@ -98,7 +100,8 @@ var viteConfig = () => {
|
|
|
98
100
|
test: {
|
|
99
101
|
globals: true,
|
|
100
102
|
environment: "jsdom",
|
|
101
|
-
setupFiles: "./src/test/setup.ts"
|
|
103
|
+
setupFiles: "./src/test/setup.ts",
|
|
104
|
+
reporters: "verbose"
|
|
102
105
|
},
|
|
103
106
|
resolve: {
|
|
104
107
|
alias: pluginOptions.aliasHq === false ? {} : import_alias_hq.default.get("rollup")
|
|
@@ -11,8 +11,9 @@ interface ReactScriptsViteOptions {
|
|
|
11
11
|
aliasHq?: false;
|
|
12
12
|
envCompatible?: false | Parameters<typeof envCompatible>[1];
|
|
13
13
|
pwa?: false | Parameters<typeof VitePWA>[0];
|
|
14
|
-
checker
|
|
14
|
+
checker?: false | Parameters<typeof pluginChecker>[0];
|
|
15
15
|
envPrefix?: string;
|
|
16
|
+
splitVendorChunkPlugin?: false;
|
|
16
17
|
}
|
|
17
18
|
declare const pluginOptions: ReactScriptsViteOptions;
|
|
18
19
|
declare const viteConfig: UserConfigFn;
|
package/dist/esm/viteConfig.mjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import fs from "fs";
|
|
3
3
|
import react from "@vitejs/plugin-react";
|
|
4
4
|
import aliasHq from "alias-hq";
|
|
5
|
+
import { splitVendorChunkPlugin } from "vite";
|
|
5
6
|
import pluginChecker from "vite-plugin-checker";
|
|
6
7
|
import envCompatible from "vite-plugin-environment";
|
|
7
8
|
import { VitePWA } from "vite-plugin-pwa";
|
|
@@ -49,7 +50,8 @@ var viteConfig = () => {
|
|
|
49
50
|
// PWA.
|
|
50
51
|
pluginOptions.pwa === false ? null : VitePWA(pluginOptions.pwa),
|
|
51
52
|
// Check for issues.
|
|
52
|
-
process.env.NODE_ENV === "test" || pluginOptions.checker === false ? null : pluginChecker(pluginOptions.checker)
|
|
53
|
+
process.env.NODE_ENV === "test" || pluginOptions.checker === false ? null : pluginChecker(pluginOptions.checker || {}),
|
|
54
|
+
pluginOptions.splitVendorChunkPlugin === false ? null : splitVendorChunkPlugin()
|
|
53
55
|
],
|
|
54
56
|
server: {
|
|
55
57
|
open: true,
|
|
@@ -63,7 +65,8 @@ var viteConfig = () => {
|
|
|
63
65
|
test: {
|
|
64
66
|
globals: true,
|
|
65
67
|
environment: "jsdom",
|
|
66
|
-
setupFiles: "./src/test/setup.ts"
|
|
68
|
+
setupFiles: "./src/test/setup.ts",
|
|
69
|
+
reporters: "verbose"
|
|
67
70
|
},
|
|
68
71
|
resolve: {
|
|
69
72
|
alias: pluginOptions.aliasHq === false ? {} : aliasHq.get("rollup")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promoboxx/react-scripts-vite",
|
|
3
|
-
"version": "0.2.1-vitest.
|
|
3
|
+
"version": "0.2.1-vitest.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.mjs",
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"@promoboxx/eslint-config": "^3.2.0",
|
|
21
21
|
"@types/node": "^20.10.4",
|
|
22
22
|
"concurrently": "^8.2.2",
|
|
23
|
-
"esbuild": "x",
|
|
24
23
|
"prettier": "^3.1.1",
|
|
25
24
|
"tsup": "^8.0.1",
|
|
26
25
|
"typescript": "^5.3.3"
|