@promoboxx/react-scripts-vite 0.1.30-rc.5 → 0.1.30-rc.6
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/viteConfig.d.ts +2 -1
- package/dist/viteConfig.js +4 -2
- package/dist/viteConfig.mjs +1 -1
- package/package.json +1 -1
package/dist/viteConfig.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import react from '@vitejs/plugin-react';
|
|
2
2
|
import { type UserConfigFn } from 'vite';
|
|
3
3
|
import pluginChecker from 'vite-plugin-checker';
|
|
4
|
+
import * as envCompatibleDefault from 'vite-plugin-env-compatible';
|
|
4
5
|
import { VitePWA } from 'vite-plugin-pwa';
|
|
5
6
|
import svgr from 'vite-plugin-svgr';
|
|
6
7
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
7
|
-
declare const envCompatible:
|
|
8
|
+
declare const envCompatible: typeof envCompatibleDefault.default;
|
|
8
9
|
interface ReactScriptsViteOptions {
|
|
9
10
|
react?: false | Parameters<typeof react>[0];
|
|
10
11
|
svgr?: false | Parameters<typeof svgr>[0];
|
package/dist/viteConfig.js
CHANGED
|
@@ -7,13 +7,15 @@ exports.pluginOptions = exports.default = void 0;
|
|
|
7
7
|
var _fs = _interopRequireDefault(require("fs"));
|
|
8
8
|
var _pluginReact = _interopRequireDefault(require("@vitejs/plugin-react"));
|
|
9
9
|
var _vitePluginChecker = _interopRequireDefault(require("vite-plugin-checker"));
|
|
10
|
-
var
|
|
10
|
+
var envCompatibleDefault = _interopRequireWildcard(require("vite-plugin-env-compatible"));
|
|
11
11
|
var _vitePluginPwa = require("vite-plugin-pwa");
|
|
12
12
|
var _vitePluginSvgr = _interopRequireDefault(require("vite-plugin-svgr"));
|
|
13
13
|
var _viteTsconfigPaths = _interopRequireDefault(require("vite-tsconfig-paths"));
|
|
14
14
|
var _replaceEnvInHtml = _interopRequireDefault(require("./replaceEnvInHtml"));
|
|
15
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
17
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
const envCompatible =
|
|
18
|
+
const envCompatible = envCompatibleDefault.default;
|
|
17
19
|
const pluginOptions = exports.pluginOptions = {
|
|
18
20
|
checker: {
|
|
19
21
|
eslint: process.env.DISABLE_ESLINT_PLUGIN === "true" ? void 0 : {
|
package/dist/viteConfig.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import fs from "fs";
|
|
2
2
|
import react from "@vitejs/plugin-react";
|
|
3
3
|
import pluginChecker from "vite-plugin-checker";
|
|
4
|
-
import envCompatibleDefault from "vite-plugin-env-compatible";
|
|
4
|
+
import * as envCompatibleDefault from "vite-plugin-env-compatible";
|
|
5
5
|
import { VitePWA } from "vite-plugin-pwa";
|
|
6
6
|
import svgr from "vite-plugin-svgr";
|
|
7
7
|
import tsconfigPaths from "vite-tsconfig-paths";
|