@dr.pogodin/react-utils 1.54.3 → 1.55.0-alpha.1
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/__type_tests__/ts-compiler-behavior.ts +13 -0
- package/__type_tests__/type-exports.ts +17 -0
- package/babel.build.config.js +9 -0
- package/babel.config.js +2 -5
- package/babel.libweb.config.js +2 -3
- package/babel.scripts.config.js +5 -11
- package/bin/build.js +4 -21
- package/bin/release.sh +1 -1
- package/build/development/client/getInj.js +2 -9
- package/build/development/client/getInj.js.map +1 -1
- package/build/development/client/index.js.map +1 -1
- package/build/development/client/init.js +1 -3
- package/build/development/client/init.js.map +1 -1
- package/build/development/index.js.map +1 -1
- package/build/development/server/Cache.js.map +1 -1
- package/build/development/server/index.js.map +1 -1
- package/build/development/server/renderer.js +10 -24
- package/build/development/server/renderer.js.map +1 -1
- package/build/development/server/server.js +6 -8
- package/build/development/server/server.js.map +1 -1
- package/build/development/server/utils/errors.js +11 -11
- package/build/development/server/utils/errors.js.map +1 -1
- package/build/development/shared/components/Button/index.js.map +1 -1
- package/build/development/shared/components/Checkbox/index.js.map +1 -1
- package/build/development/shared/components/GenericLink/index.js.map +1 -1
- package/build/development/shared/components/Input/index.js.map +1 -1
- package/build/development/shared/components/Link.js.map +1 -1
- package/build/development/shared/components/Modal/index.js.map +1 -1
- package/build/development/shared/components/NavLink.js.map +1 -1
- package/build/development/shared/components/PageLayout/index.js.map +1 -1
- package/build/development/shared/components/TextArea/index.js.map +1 -1
- package/build/development/shared/components/Throbber/index.js.map +1 -1
- package/build/development/shared/components/WithTooltip/Tooltip.js.map +1 -1
- package/build/development/shared/components/WithTooltip/index.js.map +1 -1
- package/build/development/shared/components/YouTubeVideo/index.js.map +1 -1
- package/build/development/shared/components/index.js.map +1 -1
- package/build/development/shared/components/selectors/CustomDropdown/Options/index.js +2 -5
- package/build/development/shared/components/selectors/CustomDropdown/Options/index.js.map +1 -1
- package/build/development/shared/components/selectors/CustomDropdown/index.js +1 -4
- package/build/development/shared/components/selectors/CustomDropdown/index.js.map +1 -1
- package/build/development/shared/components/selectors/NativeDropdown/index.js +2 -5
- package/build/development/shared/components/selectors/NativeDropdown/index.js.map +1 -1
- package/build/development/shared/components/selectors/Switch/index.js +2 -2
- package/build/development/shared/components/selectors/Switch/index.js.map +1 -1
- package/build/development/shared/components/selectors/common.js.map +1 -1
- package/build/development/shared/components/selectors/index.js.map +1 -1
- package/build/development/shared/utils/config.js.map +1 -1
- package/build/development/shared/utils/globalState.js.map +1 -1
- package/build/development/shared/utils/index.js.map +1 -1
- package/build/development/shared/utils/isomorphy/buildInfo.js.map +1 -1
- package/build/development/shared/utils/isomorphy/environment-check.js.map +1 -1
- package/build/development/shared/utils/isomorphy/index.js +4 -5
- package/build/development/shared/utils/isomorphy/index.js.map +1 -1
- package/build/development/shared/utils/jest/E2eSsrEnv/index.js +32 -71
- package/build/development/shared/utils/jest/E2eSsrEnv/index.js.map +1 -1
- package/build/development/shared/utils/jest/E2eSsrEnv/ssr-preload.js +23 -0
- package/build/development/shared/utils/jest/E2eSsrEnv/ssr-preload.js.map +1 -0
- package/build/development/shared/utils/jest/E2eSsrEnv/ssr.js +1 -1
- package/build/development/shared/utils/jest/E2eSsrEnv/ssr.js.map +1 -1
- package/build/development/shared/utils/jest/global.js.map +1 -1
- package/build/development/shared/utils/jest/index.js +3 -3
- package/build/development/shared/utils/jest/index.js.map +1 -1
- package/build/development/shared/utils/splitComponent.js +3 -16
- package/build/development/shared/utils/splitComponent.js.map +1 -1
- package/build/development/shared/utils/time.js +28 -65
- package/build/development/shared/utils/time.js.map +1 -1
- package/build/development/shared/utils/webpack.js +3 -5
- package/build/development/shared/utils/webpack.js.map +1 -1
- package/build/production/client/getInj.js +1 -1
- package/build/production/client/getInj.js.map +1 -1
- package/build/production/client/index.js.map +1 -1
- package/build/production/client/init.js.map +1 -1
- package/build/production/index.js.map +1 -1
- package/build/production/server/Cache.js.map +1 -1
- package/build/production/server/index.js.map +1 -1
- package/build/production/server/renderer.js +5 -5
- package/build/production/server/renderer.js.map +1 -1
- package/build/production/server/server.js +4 -4
- package/build/production/server/server.js.map +1 -1
- package/build/production/server/utils/errors.js +2 -2
- package/build/production/server/utils/errors.js.map +1 -1
- package/build/production/shared/components/Button/index.js.map +1 -1
- package/build/production/shared/components/Checkbox/index.js.map +1 -1
- package/build/production/shared/components/GenericLink/index.js.map +1 -1
- package/build/production/shared/components/Input/index.js.map +1 -1
- package/build/production/shared/components/Link.js.map +1 -1
- package/build/production/shared/components/Modal/index.js.map +1 -1
- package/build/production/shared/components/NavLink.js.map +1 -1
- package/build/production/shared/components/PageLayout/index.js.map +1 -1
- package/build/production/shared/components/TextArea/index.js.map +1 -1
- package/build/production/shared/components/Throbber/index.js.map +1 -1
- package/build/production/shared/components/WithTooltip/Tooltip.js.map +1 -1
- package/build/production/shared/components/WithTooltip/index.js.map +1 -1
- package/build/production/shared/components/YouTubeVideo/index.js.map +1 -1
- package/build/production/shared/components/index.js.map +1 -1
- package/build/production/shared/components/selectors/CustomDropdown/Options/index.js +1 -1
- package/build/production/shared/components/selectors/CustomDropdown/Options/index.js.map +1 -1
- package/build/production/shared/components/selectors/CustomDropdown/index.js +1 -1
- package/build/production/shared/components/selectors/CustomDropdown/index.js.map +1 -1
- package/build/production/shared/components/selectors/NativeDropdown/index.js +2 -2
- package/build/production/shared/components/selectors/NativeDropdown/index.js.map +1 -1
- package/build/production/shared/components/selectors/Switch/index.js +1 -1
- package/build/production/shared/components/selectors/Switch/index.js.map +1 -1
- package/build/production/shared/components/selectors/common.js.map +1 -1
- package/build/production/shared/components/selectors/index.js.map +1 -1
- package/build/production/shared/utils/config.js.map +1 -1
- package/build/production/shared/utils/globalState.js.map +1 -1
- package/build/production/shared/utils/index.js.map +1 -1
- package/build/production/shared/utils/isomorphy/buildInfo.js.map +1 -1
- package/build/production/shared/utils/isomorphy/environment-check.js.map +1 -1
- package/build/production/shared/utils/isomorphy/index.js.map +1 -1
- package/build/production/shared/utils/jest/E2eSsrEnv/index.js +12 -37
- package/build/production/shared/utils/jest/E2eSsrEnv/index.js.map +1 -1
- package/build/production/shared/utils/jest/E2eSsrEnv/ssr-preload.js +5 -0
- package/build/production/shared/utils/jest/E2eSsrEnv/ssr-preload.js.map +1 -0
- package/build/production/shared/utils/jest/E2eSsrEnv/ssr.js +1 -1
- package/build/production/shared/utils/jest/E2eSsrEnv/ssr.js.map +1 -1
- package/build/production/shared/utils/jest/global.js.map +1 -1
- package/build/production/shared/utils/jest/index.js +3 -3
- package/build/production/shared/utils/jest/index.js.map +1 -1
- package/build/production/shared/utils/splitComponent.js +3 -3
- package/build/production/shared/utils/splitComponent.js.map +1 -1
- package/build/production/shared/utils/time.js +2 -2
- package/build/production/shared/utils/time.js.map +1 -1
- package/build/production/shared/utils/webpack.js +3 -3
- package/build/production/shared/utils/webpack.js.map +1 -1
- package/build/types-code/shared/utils/webpack.d.ts +2 -2
- package/build/web/client/getInj.js +2 -2
- package/build/web/client/getInj.js.map +1 -1
- package/build/web/client/index.js +1 -1
- package/build/web/client/index.js.map +1 -1
- package/build/web/client/init.js +1 -1
- package/build/web/client/init.js.map +1 -1
- package/build/web/index.js +1 -1
- package/build/web/index.js.map +1 -1
- package/build/web/server/Cache.js.map +1 -1
- package/build/web/server/index.js +1 -1
- package/build/web/server/index.js.map +1 -1
- package/build/web/server/renderer.js +6 -6
- package/build/web/server/renderer.js.map +1 -1
- package/build/web/server/server.js +5 -5
- package/build/web/server/server.js.map +1 -1
- package/build/web/server/utils/errors.js +2 -2
- package/build/web/server/utils/errors.js.map +1 -1
- package/build/web/server/utils/index.js +1 -1
- package/build/web/server/utils/index.js.map +1 -1
- package/build/web/shared/components/Button/index.js +1 -1
- package/build/web/shared/components/Button/index.js.map +1 -1
- package/build/web/shared/components/Checkbox/index.js.map +1 -1
- package/build/web/shared/components/GenericLink/index.js.map +1 -1
- package/build/web/shared/components/Input/index.js.map +1 -1
- package/build/web/shared/components/Link.js +1 -1
- package/build/web/shared/components/Link.js.map +1 -1
- package/build/web/shared/components/Modal/index.js.map +1 -1
- package/build/web/shared/components/NavLink.js +1 -1
- package/build/web/shared/components/NavLink.js.map +1 -1
- package/build/web/shared/components/PageLayout/index.js.map +1 -1
- package/build/web/shared/components/TextArea/index.js.map +1 -1
- package/build/web/shared/components/Throbber/index.js.map +1 -1
- package/build/web/shared/components/WithTooltip/Tooltip.js.map +1 -1
- package/build/web/shared/components/WithTooltip/index.js +1 -1
- package/build/web/shared/components/WithTooltip/index.js.map +1 -1
- package/build/web/shared/components/YouTubeVideo/index.js +1 -1
- package/build/web/shared/components/YouTubeVideo/index.js.map +1 -1
- package/build/web/shared/components/index.js +1 -1
- package/build/web/shared/components/index.js.map +1 -1
- package/build/web/shared/components/selectors/CustomDropdown/Options/index.js +1 -1
- package/build/web/shared/components/selectors/CustomDropdown/Options/index.js.map +1 -1
- package/build/web/shared/components/selectors/CustomDropdown/index.js +1 -1
- package/build/web/shared/components/selectors/CustomDropdown/index.js.map +1 -1
- package/build/web/shared/components/selectors/NativeDropdown/index.js +3 -3
- package/build/web/shared/components/selectors/NativeDropdown/index.js.map +1 -1
- package/build/web/shared/components/selectors/Switch/index.js +1 -1
- package/build/web/shared/components/selectors/Switch/index.js.map +1 -1
- package/build/web/shared/components/selectors/common.js.map +1 -1
- package/build/web/shared/components/selectors/index.js +1 -1
- package/build/web/shared/components/selectors/index.js.map +1 -1
- package/build/web/shared/utils/config.js +1 -1
- package/build/web/shared/utils/config.js.map +1 -1
- package/build/web/shared/utils/globalState.js.map +1 -1
- package/build/web/shared/utils/index.js +1 -1
- package/build/web/shared/utils/index.js.map +1 -1
- package/build/web/shared/utils/isomorphy/buildInfo.js.map +1 -1
- package/build/web/shared/utils/isomorphy/environment-check.js.map +1 -1
- package/build/web/shared/utils/isomorphy/index.js +1 -1
- package/build/web/shared/utils/isomorphy/index.js.map +1 -1
- package/build/web/shared/utils/jest/E2eSsrEnv/index.js +12 -37
- package/build/web/shared/utils/jest/E2eSsrEnv/index.js.map +1 -1
- package/build/web/shared/utils/jest/E2eSsrEnv/ssr-preload.js +5 -0
- package/build/web/shared/utils/jest/E2eSsrEnv/ssr-preload.js.map +1 -0
- package/build/web/shared/utils/jest/E2eSsrEnv/ssr.js +2 -2
- package/build/web/shared/utils/jest/E2eSsrEnv/ssr.js.map +1 -1
- package/build/web/shared/utils/jest/global.js.map +1 -1
- package/build/web/shared/utils/jest/index.js +4 -4
- package/build/web/shared/utils/jest/index.js.map +1 -1
- package/build/web/shared/utils/splitComponent.js +3 -3
- package/build/web/shared/utils/splitComponent.js.map +1 -1
- package/build/web/shared/utils/time.js +2 -2
- package/build/web/shared/utils/time.js.map +1 -1
- package/build/web/shared/utils/webpack.js +4 -4
- package/build/web/shared/utils/webpack.js.map +1 -1
- package/config/babel/node-ssr.d.ts +2 -3
- package/config/babel/node-ssr.js +15 -55
- package/config/babel/webpack.d.ts +7 -5
- package/config/babel/webpack.js +19 -24
- package/config/eslint/default.mjs +1 -1
- package/config/jest/default.js +6 -7
- package/config/jest/resolver.js +1 -3
- package/config/jest/setup.js +2 -2
- package/config/stylelint/default.js +1 -4
- package/config/webpack/app-base.js +40 -41
- package/config/webpack/app-development.d.ts +1 -1
- package/config/webpack/app-development.js +12 -18
- package/config/webpack/app-production.d.ts +1 -1
- package/config/webpack/app-production.js +10 -16
- package/package.json +38 -35
- package/patches/jest-resolve+30.4.1.patch +29 -0
- package/tsconfig.configs.json +6 -1
- package/tsconfig.json +2 -1
- package/tsconfig.types.json +1 -0
- package/tstyche.json +1 -1
- package/babel.module.config.js +0 -11
- package/build/development/shared/utils/jest/E2eSsrEnv/register.js +0 -6
- package/build/development/shared/utils/jest/E2eSsrEnv/register.js.map +0 -1
- package/build/production/shared/utils/jest/E2eSsrEnv/register.js +0 -3
- package/build/production/shared/utils/jest/E2eSsrEnv/register.js.map +0 -1
- package/build/web/shared/utils/jest/E2eSsrEnv/register.js +0 -3
- package/build/web/shared/utils/jest/E2eSsrEnv/register.js.map +0 -1
- /package/build/types-code/shared/utils/jest/E2eSsrEnv/{register.d.ts → ssr-preload.d.ts} +0 -0
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const utils_1 = require("@dr.pogodin/babel-plugin-react-css-modules/utils");
|
|
2
|
+
import { randomBytes } from 'node:crypto';
|
|
3
|
+
import nodeFs from 'node:fs';
|
|
4
|
+
import { createRequire } from 'node:module';
|
|
5
|
+
import { resolve } from 'node:path';
|
|
6
|
+
import autoprefixer from 'autoprefixer';
|
|
7
|
+
import { clone, defaults, isFunction, isObject, } from 'lodash-es';
|
|
8
|
+
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
|
9
|
+
import { SitemapStream, streamToPromise } from 'sitemap';
|
|
10
|
+
// NOTE: As "webpack" is still distributed as CJS module, now that we have
|
|
11
|
+
// switched to MJS, importing plugins from it in MJS import style does not work,
|
|
12
|
+
// thus we need to import the default export, and use its fields.
|
|
13
|
+
import webpack from 'webpack';
|
|
14
|
+
import WorkboxPlugin from 'workbox-webpack-plugin';
|
|
15
|
+
import { getLocalIdent, } from '@dr.pogodin/babel-plugin-react-css-modules/utils';
|
|
18
16
|
const COREJS_REGEX = /\/core-js/;
|
|
17
|
+
const require = createRequire(import.meta.url);
|
|
19
18
|
/**
|
|
20
19
|
* Creates a new Webpack config object, and performs some auxiliary operations
|
|
21
20
|
* on the way.
|
|
@@ -125,35 +124,35 @@ const COREJS_REGEX = /\/core-js/;
|
|
|
125
124
|
* - **`rndkey`** — The value set for `BUILD_RNDKEY`;
|
|
126
125
|
* - **`timestamp`** — The value set for `BUILD_TIMESTAMP`.
|
|
127
126
|
*/
|
|
128
|
-
function configFactory(ops) {
|
|
127
|
+
export default function configFactory(ops) {
|
|
129
128
|
var _a;
|
|
130
|
-
const o =
|
|
129
|
+
const o = defaults(clone(ops), {
|
|
131
130
|
babelLoaderOptions: {},
|
|
132
131
|
cssLocalIdent: '[hash:base64:6]',
|
|
133
132
|
outputPath: 'build/web-public',
|
|
134
133
|
publicPath: '',
|
|
135
134
|
});
|
|
136
|
-
const fs = (_a = ops.fs) !== null && _a !== void 0 ? _a :
|
|
135
|
+
const fs = (_a = ops.fs) !== null && _a !== void 0 ? _a : nodeFs;
|
|
137
136
|
// TODO: Should it be improved and re-validated? Are we using it in any project
|
|
138
137
|
// as is?
|
|
139
138
|
/* TODO: This works in practice, but being async and not awaited it is a bad
|
|
140
139
|
* pattern. */
|
|
141
140
|
if (o.sitemap) {
|
|
142
|
-
const sitemapUrl =
|
|
143
|
-
// eslint-disable-next-line import/no-dynamic-require
|
|
141
|
+
const sitemapUrl = resolve(o.context, o.sitemap);
|
|
142
|
+
// eslint-disable-next-line import/no-dynamic-require
|
|
144
143
|
let source = require(sitemapUrl);
|
|
145
|
-
if (
|
|
144
|
+
if (isFunction(source))
|
|
146
145
|
source = source();
|
|
147
|
-
const sm = new
|
|
146
|
+
const sm = new SitemapStream();
|
|
148
147
|
source.forEach((item) => {
|
|
149
148
|
sm.write(item);
|
|
150
149
|
});
|
|
151
150
|
sm.end();
|
|
152
|
-
void
|
|
153
|
-
const outUrl =
|
|
151
|
+
void streamToPromise(sm).then((sitemap) => {
|
|
152
|
+
const outUrl = resolve(o.context, o.outputPath);
|
|
154
153
|
if (!fs.existsSync(outUrl))
|
|
155
154
|
fs.mkdirSync(outUrl);
|
|
156
|
-
fs.writeFileSync(
|
|
155
|
+
fs.writeFileSync(resolve(o.context, o.outputPath, 'sitemap.xml'), new DataView(sitemap.buffer));
|
|
157
156
|
});
|
|
158
157
|
}
|
|
159
158
|
// TODO: Once all assets are named by hashes, we probably don't need build
|
|
@@ -162,7 +161,7 @@ function configFactory(ops) {
|
|
|
162
161
|
// timestamp, and any other similar information to the actual app, so it
|
|
163
162
|
// can be used in some scenarious.
|
|
164
163
|
let buildInfo;
|
|
165
|
-
const buildInfoUrl =
|
|
164
|
+
const buildInfoUrl = resolve(o.context, '.build-info');
|
|
166
165
|
if (o.keepBuildInfo) {
|
|
167
166
|
// If "true" - attempt to load from the filesystem.
|
|
168
167
|
if (o.keepBuildInfo === true) {
|
|
@@ -179,7 +178,7 @@ function configFactory(ops) {
|
|
|
179
178
|
// build info object in case nothing could be loaded.
|
|
180
179
|
buildInfo !== null && buildInfo !== void 0 ? buildInfo : (buildInfo = Object.freeze({
|
|
181
180
|
/* A random 32-bit key, that can be used for encryption. */
|
|
182
|
-
key:
|
|
181
|
+
key: randomBytes(32).toString('base64'),
|
|
183
182
|
/* Public path used during build. */
|
|
184
183
|
publicPath: o.publicPath,
|
|
185
184
|
/* `true` if client-side code should setup a service worker. */
|
|
@@ -202,15 +201,15 @@ function configFactory(ops) {
|
|
|
202
201
|
...Array.isArray(o.entry) ? o.entry : [o.entry],
|
|
203
202
|
];
|
|
204
203
|
const plugins = [
|
|
205
|
-
new
|
|
204
|
+
new webpack.DefinePlugin({ BUILD_INFO: JSON.stringify(buildInfo) }),
|
|
206
205
|
];
|
|
207
206
|
if (!ops.dontUseProgressPlugin)
|
|
208
|
-
plugins.push(new
|
|
207
|
+
plugins.push(new webpack.ProgressPlugin());
|
|
209
208
|
/* Adds InjectManifest plugin from WorkBox, if opted to. */
|
|
210
209
|
if (o.workbox) {
|
|
211
|
-
if (!
|
|
210
|
+
if (!isObject(o.workbox))
|
|
212
211
|
o.workbox = {};
|
|
213
|
-
plugins.push(new
|
|
212
|
+
plugins.push(new WorkboxPlugin.InjectManifest(Object.assign(Object.assign({ swSrc: resolve(import.meta.dirname, '../workbox/default.js') }, o.workbox), { swDest: '__service-worker.js' })));
|
|
214
213
|
}
|
|
215
214
|
let { babelLoaderExclude } = ops;
|
|
216
215
|
if (babelLoaderExclude) {
|
|
@@ -260,11 +259,11 @@ function configFactory(ops) {
|
|
|
260
259
|
/* Loads SCSS stylesheets. */
|
|
261
260
|
test: /\.scss$/,
|
|
262
261
|
use: [
|
|
263
|
-
|
|
262
|
+
MiniCssExtractPlugin.loader, {
|
|
264
263
|
loader: 'css-loader',
|
|
265
264
|
options: {
|
|
266
265
|
modules: {
|
|
267
|
-
getLocalIdent
|
|
266
|
+
getLocalIdent,
|
|
268
267
|
localIdentName: o.cssLocalIdent,
|
|
269
268
|
// This flag defaults `true` for ES module builds since css-loader@7.0.0:
|
|
270
269
|
// https://github.com/webpack-contrib/css-loader/releases/tag/v7.0.0
|
|
@@ -278,7 +277,7 @@ function configFactory(ops) {
|
|
|
278
277
|
loader: 'postcss-loader',
|
|
279
278
|
options: {
|
|
280
279
|
postcssOptions: {
|
|
281
|
-
plugins: [
|
|
280
|
+
plugins: [autoprefixer],
|
|
282
281
|
},
|
|
283
282
|
},
|
|
284
283
|
}, 'resolve-url-loader', {
|
|
@@ -293,7 +292,7 @@ function configFactory(ops) {
|
|
|
293
292
|
* from dependencies, as we use SCSS inside our own code. */
|
|
294
293
|
test: /\.css$/,
|
|
295
294
|
use: [
|
|
296
|
-
|
|
295
|
+
MiniCssExtractPlugin.loader,
|
|
297
296
|
'css-loader',
|
|
298
297
|
],
|
|
299
298
|
}],
|
|
@@ -304,17 +303,17 @@ function configFactory(ops) {
|
|
|
304
303
|
output: {
|
|
305
304
|
chunkFilename: '[contenthash].js',
|
|
306
305
|
filename: '[contenthash].js',
|
|
307
|
-
path:
|
|
306
|
+
path: resolve(import.meta.dirname, o.context, o.outputPath),
|
|
308
307
|
publicPath: `${o.publicPath}/`,
|
|
309
308
|
},
|
|
310
309
|
plugins,
|
|
311
310
|
resolve: {
|
|
312
311
|
alias: {
|
|
313
312
|
// Aliases to JS an JSX files are handled by Babel.
|
|
314
|
-
assets:
|
|
315
|
-
components:
|
|
316
|
-
fonts:
|
|
317
|
-
styles:
|
|
313
|
+
assets: resolve(o.context, 'src/assets'),
|
|
314
|
+
components: resolve(o.context, 'src/shared/components'),
|
|
315
|
+
fonts: resolve(o.context, 'src/assets/fonts'),
|
|
316
|
+
styles: resolve(o.context, 'src/styles'),
|
|
318
317
|
},
|
|
319
318
|
extensions: [
|
|
320
319
|
'.ts',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
|
2
2
|
import { type Configuration } from 'webpack';
|
|
3
|
-
import { type OptionsT as BaseOptionsT } from './app-base';
|
|
3
|
+
import { type OptionsT as BaseOptionsT } from './app-base.js';
|
|
4
4
|
type OptionsT = BaseOptionsT & {
|
|
5
5
|
cssExtractionOptions?: MiniCssExtractPlugin.PluginOptions;
|
|
6
6
|
dontUseHmr?: boolean;
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const mini_css_extract_plugin_1 = __importDefault(require("mini-css-extract-plugin"));
|
|
10
|
-
const webpack_1 = __importDefault(require("webpack"));
|
|
11
|
-
const webpack_merge_1 = require("webpack-merge");
|
|
12
|
-
const react_refresh_webpack_plugin_1 = __importDefault(require("@pmmmwh/react-refresh-webpack-plugin"));
|
|
13
|
-
const app_base_1 = __importDefault(require("./app-base"));
|
|
2
|
+
import { clone, defaults } from 'lodash-es';
|
|
3
|
+
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
|
4
|
+
import webpack from 'webpack';
|
|
5
|
+
import { merge } from 'webpack-merge';
|
|
6
|
+
import ReactRefreshPlugin from '@pmmmwh/react-refresh-webpack-plugin';
|
|
7
|
+
import baseFactory from './app-base.js';
|
|
14
8
|
/**
|
|
15
9
|
* @param ops
|
|
16
10
|
* @param [ops.dontUseReactGlobalStateDebugging]
|
|
17
11
|
* @param [ops.dontUseHmr]
|
|
18
12
|
*/
|
|
19
|
-
function configFactory(ops) {
|
|
20
|
-
const o =
|
|
13
|
+
export default function configFactory(ops) {
|
|
14
|
+
const o = defaults(clone(ops), {
|
|
21
15
|
cssLocalIdent: '[package]___[path][name]___[local]___[hash:base64:6]',
|
|
22
16
|
});
|
|
23
17
|
const entry = ['@dr.pogodin/react-utils/build/development/client/init'];
|
|
@@ -25,8 +19,8 @@ function configFactory(ops) {
|
|
|
25
19
|
entry.push('webpack-hot-middleware/client?reload=true');
|
|
26
20
|
entry.push(...Array.isArray(o.entry) ? o.entry : [o.entry]);
|
|
27
21
|
const plugins = [
|
|
28
|
-
new
|
|
29
|
-
new
|
|
22
|
+
new MiniCssExtractPlugin(Object.assign({ chunkFilename: '[id].css', filename: '[id].css' }, ops.cssExtractionOptions)),
|
|
23
|
+
new webpack.DefinePlugin({
|
|
30
24
|
'process.env.BABEL_ENV': JSON.stringify('development'),
|
|
31
25
|
'process.env.DEV_TOOLS': JSON.stringify(true),
|
|
32
26
|
'process.env.NODE_ENV': JSON.stringify('development'),
|
|
@@ -39,13 +33,13 @@ function configFactory(ops) {
|
|
|
39
33
|
// fine to keep these plugins anyway, thus the shortcut of "if" condition
|
|
40
34
|
// below.
|
|
41
35
|
// if (true ?? !o.dontUseHmr) {
|
|
42
|
-
plugins.push(new
|
|
36
|
+
plugins.push(new webpack.HotModuleReplacementPlugin(), new ReactRefreshPlugin({
|
|
43
37
|
overlay: {
|
|
44
38
|
sockIntegration: 'whm',
|
|
45
39
|
},
|
|
46
40
|
}));
|
|
47
41
|
// }
|
|
48
|
-
const res =
|
|
42
|
+
const res = merge(baseFactory(Object.assign(Object.assign({}, o), { babelEnv: 'development', entry, mode: 'development' })), {
|
|
49
43
|
output: {
|
|
50
44
|
chunkFilename: '[id].js',
|
|
51
45
|
filename: '[id].js',
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
|
7
7
|
import { type Configuration } from 'webpack';
|
|
8
|
-
import { type OptionsT as BaseOptionsT } from './app-base';
|
|
8
|
+
import { type OptionsT as BaseOptionsT } from './app-base.js';
|
|
9
9
|
type OptionsT = BaseOptionsT & {
|
|
10
10
|
cssExtractionOptions?: MiniCssExtractPlugin.PluginOptions;
|
|
11
11
|
};
|
|
@@ -1,36 +1,30 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/**
|
|
3
2
|
* @category Configs
|
|
4
3
|
* @module webpack/app-production
|
|
5
4
|
* @desc Production Webpack configuration for applications.
|
|
6
5
|
*/
|
|
7
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
-
};
|
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.default = configFactory;
|
|
12
6
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
import CssMinimizerPlugin from 'css-minimizer-webpack-plugin';
|
|
8
|
+
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
|
|
9
|
+
import webpack from 'webpack';
|
|
10
|
+
import { merge } from 'webpack-merge';
|
|
11
|
+
import baseFactory from './app-base.js';
|
|
18
12
|
/**
|
|
19
13
|
* @param {object} ops
|
|
20
14
|
* @param {string} ops.context Base URL for resolution of relative config paths.
|
|
21
15
|
* @param {boolean} [ops.dontEmitBuildInfo] If set the `.build-info` file won't
|
|
22
16
|
* be created at the disk during the compilation.
|
|
23
17
|
*/
|
|
24
|
-
function configFactory(ops) {
|
|
18
|
+
export default function configFactory(ops) {
|
|
25
19
|
const entry = [
|
|
26
20
|
'@dr.pogodin/react-utils/build/production/client/init',
|
|
27
21
|
...Array.isArray(ops.entry) ? ops.entry : [ops.entry],
|
|
28
22
|
];
|
|
29
|
-
const res =
|
|
23
|
+
const res = merge(baseFactory(Object.assign(Object.assign({ babelLoaderExclude: [] }, ops), { babelEnv: 'production', babelLoaderOptions: Object.assign({ compact: true }, ops.babelLoaderOptions), entry, mode: 'production' })), {
|
|
30
24
|
optimization: {
|
|
31
25
|
minimizer: [
|
|
32
26
|
'...',
|
|
33
|
-
new
|
|
27
|
+
new CssMinimizerPlugin({
|
|
34
28
|
minimizerOptions: {
|
|
35
29
|
preset: ['default', {
|
|
36
30
|
/* Due to the way our styles are organized, these dangerous
|
|
@@ -44,11 +38,11 @@ function configFactory(ops) {
|
|
|
44
38
|
],
|
|
45
39
|
},
|
|
46
40
|
plugins: [
|
|
47
|
-
new
|
|
41
|
+
new webpack.DefinePlugin({
|
|
48
42
|
'process.env.BABEL_ENV': JSON.stringify('production'),
|
|
49
43
|
'process.env.NODE_ENV': JSON.stringify('production'),
|
|
50
44
|
}),
|
|
51
|
-
new
|
|
45
|
+
new MiniCssExtractPlugin(Object.assign({ chunkFilename: '[contenthash].css', filename: '[contenthash].css' }, ops.cssExtractionOptions)),
|
|
52
46
|
],
|
|
53
47
|
});
|
|
54
48
|
return res;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.55.0-alpha.1",
|
|
3
3
|
"bin": {
|
|
4
4
|
"react-utils-build": "bin/build.js",
|
|
5
5
|
"react-utils-setup": "bin/setup.js"
|
|
@@ -8,26 +8,26 @@
|
|
|
8
8
|
"url": "https://github.com/birdofpreyru/react-utils/issues"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@babel/runtime": "^
|
|
11
|
+
"@babel/runtime": "^8.0.0",
|
|
12
12
|
"@commander-js/extra-typings": "^15.0.0",
|
|
13
|
-
"@dr.pogodin/babel-plugin-react-css-modules": "^
|
|
13
|
+
"@dr.pogodin/babel-plugin-react-css-modules": "^7.0.4",
|
|
14
14
|
"@dr.pogodin/csurf": "^1.17.1",
|
|
15
|
-
"@dr.pogodin/js-utils": "^0.
|
|
16
|
-
"@dr.pogodin/react-global-state": "^0.
|
|
15
|
+
"@dr.pogodin/js-utils": "^0.2.0",
|
|
16
|
+
"@dr.pogodin/react-global-state": "^0.25.0",
|
|
17
17
|
"@dr.pogodin/react-helmet": "^3.2.2",
|
|
18
|
-
"@dr.pogodin/react-themes": "^1.
|
|
18
|
+
"@dr.pogodin/react-themes": "^1.11.0",
|
|
19
19
|
"@jest/environment": "^30.4.1",
|
|
20
20
|
"axios": "^1.18.1",
|
|
21
21
|
"commander": "^15.0.0",
|
|
22
22
|
"compression": "^1.8.1",
|
|
23
23
|
"config": "^4.4.2",
|
|
24
|
-
"cookie": "^2.0.
|
|
24
|
+
"cookie": "^2.0.1",
|
|
25
25
|
"cookie-parser": "^1.4.7",
|
|
26
|
-
"core-js": "^3.49.0",
|
|
26
|
+
"core-js-pure": "^3.49.0",
|
|
27
27
|
"cross-env": "^10.1.0",
|
|
28
28
|
"dayjs": "^1.11.21",
|
|
29
29
|
"express": "^5.2.1",
|
|
30
|
-
"helmet": "^8.
|
|
30
|
+
"helmet": "^8.3.0",
|
|
31
31
|
"http-status-codes": "^2.3.0",
|
|
32
32
|
"lodash-es": "^4.18.1",
|
|
33
33
|
"morgan": "^1.11.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"raf": "^3.4.1",
|
|
36
36
|
"react": "^19.2.7",
|
|
37
37
|
"react-dom": "^19.2.7",
|
|
38
|
-
"react-router": "^7.18.
|
|
38
|
+
"react-router": "^7.18.1",
|
|
39
39
|
"request-ip": "^3.3.0",
|
|
40
40
|
"rimraf": "^6.1.3",
|
|
41
41
|
"serialize-javascript": "^7.0.7",
|
|
@@ -45,17 +45,18 @@
|
|
|
45
45
|
},
|
|
46
46
|
"description": "Collection of generic ReactJS components and utils",
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@babel/cli": "^
|
|
49
|
-
"@babel/core": "^
|
|
50
|
-
"@babel/node": "^
|
|
51
|
-
"@babel/plugin-transform-runtime": "^
|
|
52
|
-
"@babel/preset-env": "^
|
|
53
|
-
"@babel/preset-react": "^
|
|
54
|
-
"@babel/preset-typescript": "^
|
|
55
|
-
"@babel/register": "^
|
|
56
|
-
"@dr.pogodin/babel-plugin-
|
|
57
|
-
"@dr.pogodin/babel-
|
|
58
|
-
"@dr.pogodin/
|
|
48
|
+
"@babel/cli": "^8.0.4",
|
|
49
|
+
"@babel/core": "^8.0.1",
|
|
50
|
+
"@babel/node": "^8.0.1",
|
|
51
|
+
"@babel/plugin-transform-runtime": "^8.0.1",
|
|
52
|
+
"@babel/preset-env": "^8.0.2",
|
|
53
|
+
"@babel/preset-react": "^8.0.1",
|
|
54
|
+
"@babel/preset-typescript": "^8.0.1",
|
|
55
|
+
"@babel/register": "^8.0.1",
|
|
56
|
+
"@dr.pogodin/babel-plugin-add-import-extension": "^2.3.1",
|
|
57
|
+
"@dr.pogodin/babel-plugin-transform-assets": "^2.0.0",
|
|
58
|
+
"@dr.pogodin/babel-preset-svgr": "^2.0.0",
|
|
59
|
+
"@dr.pogodin/eslint-configs": "^0.3.1",
|
|
59
60
|
"@jest/globals": "^30.4.1",
|
|
60
61
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.6.2",
|
|
61
62
|
"@standard-schema/spec": "^1.1.0",
|
|
@@ -63,7 +64,6 @@
|
|
|
63
64
|
"@testing-library/react": "^16.3.2",
|
|
64
65
|
"@testing-library/user-event": "^14.6.1",
|
|
65
66
|
"@tsconfig/recommended": "^1.0.13",
|
|
66
|
-
"@types/babel__register": "^7.17.3",
|
|
67
67
|
"@types/compression": "^1.8.1",
|
|
68
68
|
"@types/config": "^3.3.5",
|
|
69
69
|
"@types/cookie": "^0.6.0",
|
|
@@ -79,16 +79,16 @@
|
|
|
79
79
|
"@types/request-ip": "^0.0.41",
|
|
80
80
|
"@types/serialize-javascript": "^5.0.4",
|
|
81
81
|
"@types/serve-favicon": "^2.5.7",
|
|
82
|
-
"@types/supertest": "^7.2.
|
|
82
|
+
"@types/supertest": "^7.2.1",
|
|
83
83
|
"@types/webpack": "^5.28.5",
|
|
84
84
|
"@types/webpack-hot-middleware": "^2.25.12",
|
|
85
|
-
"autoprefixer": "^10.5.
|
|
85
|
+
"autoprefixer": "^10.5.4",
|
|
86
86
|
"babel-jest": "^30.4.1",
|
|
87
87
|
"babel-loader": "^10.1.1",
|
|
88
|
-
"babel-plugin-add-import-extension": "^1.6.0",
|
|
89
88
|
"babel-plugin-module-resolver": "^5.0.3",
|
|
89
|
+
"babel-plugin-polyfill-corejs3": "^1.0.0",
|
|
90
90
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
91
|
-
"babel-plugin-transform-import-meta": "^
|
|
91
|
+
"babel-plugin-transform-import-meta": "^3.0.0",
|
|
92
92
|
"css-loader": "^7.1.4",
|
|
93
93
|
"css-minimizer-webpack-plugin": "^8.0.0",
|
|
94
94
|
"identity-obj-proxy": "^3.0.0",
|
|
@@ -98,7 +98,8 @@
|
|
|
98
98
|
"mini-css-extract-plugin": "^2.10.2",
|
|
99
99
|
"mockdate": "^3.0.5",
|
|
100
100
|
"nodelist-foreach-polyfill": "^1.2.0",
|
|
101
|
-
"
|
|
101
|
+
"patch-package": "^8.0.1",
|
|
102
|
+
"postcss": "^8.5.19",
|
|
102
103
|
"postcss-loader": "^8.2.1",
|
|
103
104
|
"postcss-scss": "^4.0.9",
|
|
104
105
|
"pretty": "^2.0.0",
|
|
@@ -111,11 +112,11 @@
|
|
|
111
112
|
"stylelint": "^17.14.0",
|
|
112
113
|
"stylelint-config-standard-scss": "^17.0.0",
|
|
113
114
|
"supertest": "^7.2.2",
|
|
114
|
-
"tsc-alias": "1.
|
|
115
|
-
"tstyche": "^7.2.
|
|
115
|
+
"tsc-alias": "1.9.1",
|
|
116
|
+
"tstyche": "^7.2.2",
|
|
116
117
|
"typed-scss-modules": "^8.1.1",
|
|
117
|
-
"typescript": "^
|
|
118
|
-
"webpack": "
|
|
118
|
+
"typescript": "^6.0.3",
|
|
119
|
+
"webpack": "5.107.2",
|
|
119
120
|
"webpack-dev-middleware": "^8.0.3",
|
|
120
121
|
"webpack-hot-middleware": "^2.26.1",
|
|
121
122
|
"webpack-merge": "^6.0.1",
|
|
@@ -124,8 +125,8 @@
|
|
|
124
125
|
"workbox-webpack-plugin": "^7.4.1"
|
|
125
126
|
},
|
|
126
127
|
"engines": {
|
|
127
|
-
"node": ">=
|
|
128
|
-
"npm": ">=
|
|
128
|
+
"node": ">=24",
|
|
129
|
+
"npm": ">=11.16"
|
|
129
130
|
},
|
|
130
131
|
"main": "./build/production/index.js",
|
|
131
132
|
"types": "./build/types-code/index.d.ts",
|
|
@@ -191,13 +192,15 @@
|
|
|
191
192
|
"build": "rimraf build && npm run build:scripts && npm run build:configs && node bin/build -t library",
|
|
192
193
|
"build:configs": "tsc --project tsconfig.configs.json",
|
|
193
194
|
"build:scripts": "babel ./bin-ts-src --config-file ./babel.scripts.config.js --out-dir bin -x .ts",
|
|
194
|
-
"jest:logic": "NODE_CONFIG_ENV=test jest --no-cache -w 1 --config config/jest/default.js",
|
|
195
|
+
"jest:logic": "NODE_CONFIG_ENV=test NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" jest --no-cache -w 1 --config config/jest/default.js",
|
|
195
196
|
"jest:types": "tstyche",
|
|
196
197
|
"jest": "npm run jest:types && npm run jest:logic",
|
|
197
198
|
"lint": "npm run lint:code && npm run lint:scss",
|
|
198
199
|
"lint:code": "eslint --cache --cache-strategy content",
|
|
199
200
|
"lint:scss": "stylelint -- **/*.{css,scss}",
|
|
201
|
+
"postinstall": "patch-package || true",
|
|
200
202
|
"test": "npm run lint && npm run typecheck && npm run jest",
|
|
201
203
|
"typecheck": "tsc --noEmit"
|
|
202
|
-
}
|
|
204
|
+
},
|
|
205
|
+
"type": "module"
|
|
203
206
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
diff --git a/node_modules/jest-resolve/build/index.js b/node_modules/jest-resolve/build/index.js
|
|
2
|
+
index 2dbd326..f480209 100644
|
|
3
|
+
--- a/node_modules/jest-resolve/build/index.js
|
|
4
|
+
+++ b/node_modules/jest-resolve/build/index.js
|
|
5
|
+
@@ -1165,7 +1165,7 @@ function loadResolver(resolver) {
|
|
6
|
+
if (resolver == null) {
|
|
7
|
+
return _defaultResolver.default;
|
|
8
|
+
}
|
|
9
|
+
- const loadedResolver = require(resolver);
|
|
10
|
+
+ let loadedResolver = require(resolver);
|
|
11
|
+
if (loadedResolver == null) {
|
|
12
|
+
throw new Error(`Resolver located at ${resolver} does not export anything`);
|
|
13
|
+
}
|
|
14
|
+
@@ -1175,6 +1175,15 @@ function loadResolver(resolver) {
|
|
15
|
+
if (typeof loadedResolver === 'object' && (loadedResolver.sync != null || loadedResolver.async != null)) {
|
|
16
|
+
return loadedResolver;
|
|
17
|
+
}
|
|
18
|
+
+ if (typeof loadedResolver === 'object' && loadedResolver.default) {
|
|
19
|
+
+ loadedResolver = loadedResolver.default;
|
|
20
|
+
+ if (typeof loadedResolver === 'function') {
|
|
21
|
+
+ return loadedResolver;
|
|
22
|
+
+ }
|
|
23
|
+
+ if (typeof loadedResolver === 'object' && (loadedResolver.sync != null || loadedResolver.async != null)) {
|
|
24
|
+
+ return loadedResolver;
|
|
25
|
+
+ }
|
|
26
|
+
+ }
|
|
27
|
+
throw new Error(`Resolver located at ${resolver} does not export a function or an object with "sync" and "async" props`);
|
|
28
|
+
}
|
|
29
|
+
|
package/tsconfig.configs.json
CHANGED
|
@@ -7,16 +7,21 @@
|
|
|
7
7
|
],
|
|
8
8
|
"compilerOptions": {
|
|
9
9
|
"declaration": true,
|
|
10
|
-
"
|
|
10
|
+
"module": "nodenext",
|
|
11
|
+
"moduleResolution": "nodenext",
|
|
11
12
|
"outDir": "config",
|
|
12
13
|
"paths": {
|
|
13
14
|
"*": ["./src/shared/*", "./src/*", "./*"]
|
|
14
15
|
},
|
|
16
|
+
"rootDir": "config-ts-src",
|
|
15
17
|
|
|
16
18
|
// TODO: Overriding the base config as configs are compiled into CommonJS
|
|
17
19
|
// modules, and this flag leads to the following error in that case, if set:
|
|
18
20
|
// ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled.
|
|
19
21
|
// Perhaps, there is a better workaround?
|
|
20
22
|
"verbatimModuleSyntax": false
|
|
23
|
+
},
|
|
24
|
+
"tsc-alias": {
|
|
25
|
+
"resolveFullPaths": true
|
|
21
26
|
}
|
|
22
27
|
}
|
package/tsconfig.json
CHANGED
package/tsconfig.types.json
CHANGED
package/tstyche.json
CHANGED
package/babel.module.config.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","names":["register","extensions"],"sources":["../../../../../../src/shared/utils/jest/E2eSsrEnv/register.ts"],"sourcesContent":["// eslint-disable-next-line import/no-extraneous-dependencies\nimport register from '@babel/register';\n\nregister({\n extensions: ['.js', '.jsx', '.ts', '.tsx', '.svg'],\n});\n"],"mappings":"AAAA;AACA,OAAOA,QAAQ,MAAM,iBAAiB;AAEtCA,QAAQ,CAAC;EACPC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM;AACnD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","names":["register","extensions"],"sources":["../../../../../../src/shared/utils/jest/E2eSsrEnv/register.ts"],"sourcesContent":["// eslint-disable-next-line import/no-extraneous-dependencies\nimport register from '@babel/register';\n\nregister({\n extensions: ['.js', '.jsx', '.ts', '.tsx', '.svg'],\n});\n"],"mappings":"AAAA;AACA,MAAO,CAAAA,QAAQ,KAAM,iBAAiB,CAEtCA,QAAQ,CAAC,CACPC,UAAU,CAAE,CAAC,KAAK,CAAE,MAAM,CAAE,KAAK,CAAE,MAAM,CAAE,MAAM,CACnD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","names":["register","extensions"],"sources":["../../../../../../src/shared/utils/jest/E2eSsrEnv/register.ts"],"sourcesContent":["// eslint-disable-next-line import/no-extraneous-dependencies\nimport register from '@babel/register';\n\nregister({\n extensions: ['.js', '.jsx', '.ts', '.tsx', '.svg'],\n});\n"],"mappings":"AAAA;AACA,MAAO,CAAAA,QAAQ,KAAM,iBAAiB,CAEtCA,QAAQ,CAAC,CACPC,UAAU,CAAE,CAAC,KAAK,CAAE,MAAM,CAAE,KAAK,CAAE,MAAM,CAAE,MAAM,CACnD,CAAC,CAAC","ignoreList":[]}
|
|
File without changes
|