@tramvai/cli 6.79.13 → 6.79.16
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/lib/api/analyze/index.d.ts +1 -1
- package/lib/api/analyze/index.d.ts.map +1 -1
- package/lib/api/start/index.d.ts +1 -1
- package/lib/api/start/index.d.ts.map +1 -1
- package/lib/builder/webpack/analyzePlugins/bundle.d.ts +1 -1
- package/lib/builder/webpack/analyzePlugins/bundle.js +1 -1
- package/lib/builder/webpack/analyzePlugins/bundle.js.map +1 -1
- package/lib/builder/webpack/analyzePlugins/rsdoctor.d.ts +0 -4
- package/lib/builder/webpack/analyzePlugins/rsdoctor.d.ts.map +1 -1
- package/lib/builder/webpack/analyzePlugins/rsdoctor.js +0 -1
- package/lib/builder/webpack/analyzePlugins/rsdoctor.js.map +1 -1
- package/lib/builder/webpack/analyzePlugins/statoscope.d.ts +3 -7
- package/lib/builder/webpack/analyzePlugins/statoscope.d.ts.map +1 -1
- package/lib/builder/webpack/analyzePlugins/statoscope.js +6 -26
- package/lib/builder/webpack/analyzePlugins/statoscope.js.map +1 -1
- package/lib/builder/webpack/analyzePlugins/stats.d.ts +12 -0
- package/lib/builder/webpack/analyzePlugins/stats.d.ts.map +1 -0
- package/lib/builder/webpack/analyzePlugins/stats.js +40 -0
- package/lib/builder/webpack/analyzePlugins/stats.js.map +1 -0
- package/lib/builder/webpack/analyzePlugins/whyBundled.d.ts +1 -1
- package/lib/builder/webpack/analyzePlugins/whyBundled.d.ts.map +1 -1
- package/lib/builder/webpack/analyzePlugins/whyBundled.js +1 -1
- package/lib/builder/webpack/analyzePlugins/whyBundled.js.map +1 -1
- package/lib/builder/webpack/providers/build/server.d.ts.map +1 -1
- package/lib/builder/webpack/providers/build/server.js +5 -2
- package/lib/builder/webpack/providers/build/server.js.map +1 -1
- package/lib/builder/webpack/providers/shared.d.ts.map +1 -1
- package/lib/builder/webpack/providers/shared.js +2 -0
- package/lib/builder/webpack/providers/shared.js.map +1 -1
- package/lib/builder/webpack/providers/start/shared.d.ts.map +1 -1
- package/lib/builder/webpack/providers/start/shared.js +10 -4
- package/lib/builder/webpack/providers/start/shared.js.map +1 -1
- package/lib/builder/webpack/types.d.ts +2 -1
- package/lib/builder/webpack/types.d.ts.map +1 -1
- package/lib/builder/webpack/types.js +3 -1
- package/lib/builder/webpack/types.js.map +1 -1
- package/lib/commands/analyze/command.js +1 -1
- package/lib/commands/analyze/command.js.map +1 -1
- package/lib/commands/build/command.d.ts.map +1 -1
- package/lib/commands/build/command.js +6 -1
- package/lib/commands/build/command.js.map +1 -1
- package/lib/commands/start/command.js +1 -1
- package/lib/commands/start/command.js.map +1 -1
- package/lib/config/configManager.d.ts +2 -1
- package/lib/config/configManager.d.ts.map +1 -1
- package/lib/config/configManager.js +1 -0
- package/lib/config/configManager.js.map +1 -1
- package/lib/library/webpack/application/client/dev.js +5 -5
- package/lib/library/webpack/application/client/dev.js.map +1 -1
- package/lib/library/webpack/application/client/prod.js +2 -2
- package/lib/library/webpack/application/client/prod.js.map +1 -1
- package/lib/library/webpack/application/server/dev.d.ts.map +1 -1
- package/lib/library/webpack/application/server/dev.js +2 -2
- package/lib/library/webpack/application/server/dev.js.map +1 -1
- package/lib/library/webpack/application/server/prod.d.ts.map +1 -1
- package/lib/library/webpack/application/server/prod.js +2 -2
- package/lib/library/webpack/application/server/prod.js.map +1 -1
- package/lib/library/webpack/blocks/optimize.d.ts.map +1 -1
- package/lib/library/webpack/blocks/optimize.js +7 -1
- package/lib/library/webpack/blocks/optimize.js.map +1 -1
- package/lib/library/webpack/child-app/common.d.ts.map +1 -1
- package/lib/library/webpack/child-app/common.js +2 -10
- package/lib/library/webpack/child-app/common.js.map +1 -1
- package/lib/library/webpack/child-app/server/common.d.ts.map +1 -1
- package/lib/library/webpack/child-app/server/common.js +2 -2
- package/lib/library/webpack/child-app/server/common.js.map +1 -1
- package/lib/library/webpack/common/main.js +1 -1
- package/lib/library/webpack/common/main.js.map +1 -1
- package/lib/library/webpack/module/common.d.ts.map +1 -1
- package/lib/library/webpack/module/common.js +2 -2
- package/lib/library/webpack/module/common.js.map +1 -1
- package/lib/schema/autogeneratedSchema.json +15 -15
- package/package.json +8 -7
- package/schema.json +15 -15
- package/src/api/analyze/index.ts +1 -1
- package/src/api/build/__integration__/build.test.ts +8 -8
- package/src/api/start/index.ts +1 -1
- package/src/builder/webpack/analyzePlugins/bundle.ts +1 -1
- package/src/builder/webpack/analyzePlugins/rsdoctor.ts +0 -2
- package/src/builder/webpack/analyzePlugins/statoscope.ts +8 -40
- package/src/builder/webpack/analyzePlugins/stats.ts +45 -0
- package/src/builder/webpack/analyzePlugins/whyBundled.ts +1 -1
- package/src/builder/webpack/providers/build/server.ts +7 -2
- package/src/builder/webpack/providers/shared.ts +2 -0
- package/src/builder/webpack/providers/start/shared.ts +10 -4
- package/src/builder/webpack/types.ts +5 -2
- package/src/commands/analyze/command.ts +1 -1
- package/src/commands/build/command.ts +6 -1
- package/src/commands/start/command.ts +1 -1
- package/src/config/configManager.ts +3 -1
- package/src/library/swc/__integration__/__snapshots__/swc.build.test.ts.snap +14 -14
- package/src/library/swc/__integration__/__snapshots__/swc.start.test.ts.snap +30 -30
- package/src/library/swc/__integration__/swc.build.test.ts +1 -1
- package/src/library/swc/__integration__/swc.start.test.ts +1 -1
- package/src/library/webpack/application/client/dev.ts +4 -4
- package/src/library/webpack/application/client/prod.ts +1 -1
- package/src/library/webpack/application/server/dev.ts +2 -1
- package/src/library/webpack/application/server/prod.ts +2 -1
- package/src/library/webpack/blocks/optimize.ts +8 -1
- package/src/library/webpack/child-app/common.ts +2 -10
- package/src/library/webpack/child-app/server/common.ts +2 -1
- package/src/library/webpack/common/main.ts +1 -1
- package/src/library/webpack/module/common.ts +3 -1
- package/src/schema/autogeneratedSchema.json +15 -15
- package/lib/library/webpack/plugins/RuntimePathPlugin.d.ts +0 -15
- package/lib/library/webpack/plugins/RuntimePathPlugin.d.ts.map +0 -1
- package/lib/library/webpack/plugins/RuntimePathPlugin.js +0 -42
- package/lib/library/webpack/plugins/RuntimePathPlugin.js.map +0 -1
- package/src/library/webpack/plugins/RuntimePathPlugin.ts +0 -59
|
@@ -5,9 +5,9 @@ exports[`client: create-token-pure.ts 1`] = `
|
|
|
5
5
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6
6
|
/* harmony export */ TEST_TOKEN: function() { return /* binding */ TEST_TOKEN; }
|
|
7
7
|
/* harmony export */ });
|
|
8
|
-
/* harmony import */ var _tramvai_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./
|
|
9
|
-
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("
|
|
10
|
-
__webpack_require__.$Refresh$.runtime = __webpack_require__("
|
|
8
|
+
/* harmony import */ var _tramvai_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./mocks/tramvai-core.ts");
|
|
9
|
+
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("../../../../../../node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js");
|
|
10
|
+
__webpack_require__.$Refresh$.runtime = __webpack_require__("../../../../../../node_modules/react-refresh/runtime.js");
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
const TEST_TOKEN = /*#__PURE__*/ (0,_tramvai_core__WEBPACK_IMPORTED_MODULE_0__.createToken)('TEST_TOKEN');
|
|
@@ -139,9 +139,9 @@ exports[`client: lazy-component.tsx 1`] = `
|
|
|
139
139
|
/* harmony export */ });
|
|
140
140
|
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("webpack/sharing/consume/default/react/jsx-dev-runtime/react/jsx-dev-runtime");
|
|
141
141
|
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
|
142
|
-
/* harmony import */ var _tramvai_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./
|
|
143
|
-
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("
|
|
144
|
-
__webpack_require__.$Refresh$.runtime = __webpack_require__("
|
|
142
|
+
/* harmony import */ var _tramvai_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./mocks/tramvai-react.ts");
|
|
143
|
+
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("../../../../../../node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js");
|
|
144
|
+
__webpack_require__.$Refresh$.runtime = __webpack_require__("../../../../../../node_modules/react-refresh/runtime.js");
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
@@ -156,12 +156,12 @@ const LazyComponent = (0,_tramvai_react__WEBPACK_IMPORTED_MODULE_1__.lazy)({
|
|
|
156
156
|
const key = this.resolve(props);
|
|
157
157
|
return !!__webpack_require__.m[key];
|
|
158
158
|
},
|
|
159
|
-
importAsync: ()=>__webpack_require__.e(/* import() | components-lazy-inner */ "components-lazy-inner").then(__webpack_require__.bind(__webpack_require__, "./
|
|
159
|
+
importAsync: ()=>__webpack_require__.e(/* import() | components-lazy-inner */ "components-lazy-inner").then(__webpack_require__.bind(__webpack_require__, "./components/lazy-inner.tsx")),
|
|
160
160
|
requireAsync (props) {
|
|
161
161
|
return this.importAsync(props).then((resolved)=>resolved);
|
|
162
162
|
},
|
|
163
163
|
resolve () {
|
|
164
|
-
return /*require.resolve*/("./
|
|
164
|
+
return /*require.resolve*/("./components/lazy-inner.tsx");
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
167
|
_c = LazyComponent;
|
|
@@ -228,8 +228,8 @@ exports[`client: node-env.ts 1`] = `
|
|
|
228
228
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
229
229
|
/* harmony export */ func: function() { return /* binding */ func; }
|
|
230
230
|
/* harmony export */ });
|
|
231
|
-
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("
|
|
232
|
-
__webpack_require__.$Refresh$.runtime = __webpack_require__("
|
|
231
|
+
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("../../../../../../node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js");
|
|
232
|
+
__webpack_require__.$Refresh$.runtime = __webpack_require__("../../../../../../node_modules/react-refresh/runtime.js");
|
|
233
233
|
|
|
234
234
|
let internalFunc;
|
|
235
235
|
if (true) {
|
|
@@ -281,10 +281,10 @@ exports[`client: provider-stack.ts 1`] = `
|
|
|
281
281
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
282
282
|
/* harmony export */ providers: function() { return /* binding */ providers; }
|
|
283
283
|
/* harmony export */ });
|
|
284
|
-
/* harmony import */ var _tramvai_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./
|
|
285
|
-
/* harmony import */ var _create_token_pure__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./
|
|
286
|
-
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("
|
|
287
|
-
__webpack_require__.$Refresh$.runtime = __webpack_require__("
|
|
284
|
+
/* harmony import */ var _tramvai_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./mocks/tramvai-core.ts");
|
|
285
|
+
/* harmony import */ var _create_token_pure__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./create-token-pure.ts");
|
|
286
|
+
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("../../../../../../node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js");
|
|
287
|
+
__webpack_require__.$Refresh$.runtime = __webpack_require__("../../../../../../node_modules/react-refresh/runtime.js");
|
|
288
288
|
|
|
289
289
|
var _ref;
|
|
290
290
|
|
|
@@ -341,9 +341,9 @@ exports[`client: react-svg.tsx 1`] = `
|
|
|
341
341
|
/* harmony export */ });
|
|
342
342
|
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("webpack/sharing/consume/default/react/jsx-dev-runtime/react/jsx-dev-runtime");
|
|
343
343
|
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
|
344
|
-
/* harmony import */ var _images_logo_svg_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./
|
|
345
|
-
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("
|
|
346
|
-
__webpack_require__.$Refresh$.runtime = __webpack_require__("
|
|
344
|
+
/* harmony import */ var _images_logo_svg_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./images/logo.svg?react");
|
|
345
|
+
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("../../../../../../node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js");
|
|
346
|
+
__webpack_require__.$Refresh$.runtime = __webpack_require__("../../../../../../node_modules/react-refresh/runtime.js");
|
|
347
347
|
|
|
348
348
|
|
|
349
349
|
|
|
@@ -404,9 +404,9 @@ exports[`client: server.inline.ts 1`] = `
|
|
|
404
404
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
405
405
|
/* harmony export */ ForBrowser: function() { return /* binding */ ForBrowser; }
|
|
406
406
|
/* harmony export */ });
|
|
407
|
-
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("
|
|
408
|
-
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("
|
|
409
|
-
__webpack_require__.$Refresh$.runtime = __webpack_require__("
|
|
407
|
+
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../../../../../node_modules/@swc/helpers/esm/_define_property.js");
|
|
408
|
+
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("../../../../../../node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js");
|
|
409
|
+
__webpack_require__.$Refresh$.runtime = __webpack_require__("../../../../../../node_modules/react-refresh/runtime.js");
|
|
410
410
|
|
|
411
411
|
|
|
412
412
|
class ForBrowser {
|
|
@@ -461,8 +461,8 @@ exports[`client: typeof-window.ts 1`] = `
|
|
|
461
461
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
462
462
|
/* harmony export */ func: function() { return /* binding */ func; }
|
|
463
463
|
/* harmony export */ });
|
|
464
|
-
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("
|
|
465
|
-
__webpack_require__.$Refresh$.runtime = __webpack_require__("
|
|
464
|
+
/* provided dependency */ var __react_refresh_utils__ = __webpack_require__("../../../../../../node_modules/@pmmmwh/react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js");
|
|
465
|
+
__webpack_require__.$Refresh$.runtime = __webpack_require__("../../../../../../node_modules/react-refresh/runtime.js");
|
|
466
466
|
|
|
467
467
|
let internalFunc;
|
|
468
468
|
if (true) {
|
|
@@ -514,7 +514,7 @@ exports[`server: create-token-pure.ts 1`] = `
|
|
|
514
514
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
515
515
|
/* harmony export */ TEST_TOKEN: function() { return /* binding */ TEST_TOKEN; }
|
|
516
516
|
/* harmony export */ });
|
|
517
|
-
/* harmony import */ var _tramvai_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./
|
|
517
|
+
/* harmony import */ var _tramvai_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./mocks/tramvai-core.ts");
|
|
518
518
|
|
|
519
519
|
const TEST_TOKEN = /*#__PURE__*/ (0,_tramvai_core__WEBPACK_IMPORTED_MODULE_0__.createToken)('TEST_TOKEN');
|
|
520
520
|
|
|
@@ -611,8 +611,8 @@ exports[`server: lazy-component.tsx 1`] = `
|
|
|
611
611
|
/* harmony export */ });
|
|
612
612
|
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("webpack/sharing/consume/default/react/jsx-dev-runtime/react/jsx-dev-runtime");
|
|
613
613
|
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
|
614
|
-
/* harmony import */ var _swc_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("
|
|
615
|
-
/* harmony import */ var _tramvai_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./
|
|
614
|
+
/* harmony import */ var _swc_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../../../../../node_modules/@swc/helpers/esm/_interop_require_wildcard.js");
|
|
615
|
+
/* harmony import */ var _tramvai_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./mocks/tramvai-react.ts");
|
|
616
616
|
|
|
617
617
|
|
|
618
618
|
|
|
@@ -627,12 +627,12 @@ const LazyComponent = (0,_tramvai_react__WEBPACK_IMPORTED_MODULE_2__.lazy)({
|
|
|
627
627
|
const key = this.resolve(props);
|
|
628
628
|
return !!__webpack_require__.m[key];
|
|
629
629
|
},
|
|
630
|
-
importAsync: ()=>Promise.resolve().then(()=>(0,_swc_helpers__WEBPACK_IMPORTED_MODULE_1__._)(__webpack_require__(/* webpackChunkName: "components-lazy-inner" */ "./
|
|
630
|
+
importAsync: ()=>Promise.resolve().then(()=>(0,_swc_helpers__WEBPACK_IMPORTED_MODULE_1__._)(__webpack_require__(/* webpackChunkName: "components-lazy-inner" */ "./components/lazy-inner.tsx"))),
|
|
631
631
|
requireAsync (props) {
|
|
632
632
|
return this.importAsync(props).then((resolved)=>resolved);
|
|
633
633
|
},
|
|
634
634
|
resolve () {
|
|
635
|
-
return /*require.resolve*/("./
|
|
635
|
+
return /*require.resolve*/("./components/lazy-inner.tsx");
|
|
636
636
|
}
|
|
637
637
|
});
|
|
638
638
|
const Component = ()=>{
|
|
@@ -682,8 +682,8 @@ exports[`server: provider-stack.ts 1`] = `
|
|
|
682
682
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
683
683
|
/* harmony export */ providers: function() { return /* binding */ providers; }
|
|
684
684
|
/* harmony export */ });
|
|
685
|
-
/* harmony import */ var _tramvai_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./
|
|
686
|
-
/* harmony import */ var _create_token_pure__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./
|
|
685
|
+
/* harmony import */ var _tramvai_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./mocks/tramvai-core.ts");
|
|
686
|
+
/* harmony import */ var _create_token_pure__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./create-token-pure.ts");
|
|
687
687
|
var _ref;
|
|
688
688
|
|
|
689
689
|
|
|
@@ -708,7 +708,7 @@ exports[`server: react-svg.tsx 1`] = `
|
|
|
708
708
|
/* harmony export */ });
|
|
709
709
|
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("webpack/sharing/consume/default/react/jsx-dev-runtime/react/jsx-dev-runtime");
|
|
710
710
|
/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);
|
|
711
|
-
/* harmony import */ var _images_logo_svg_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./
|
|
711
|
+
/* harmony import */ var _images_logo_svg_react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./images/logo.svg?react");
|
|
712
712
|
|
|
713
713
|
|
|
714
714
|
const Component = ()=>{
|
|
@@ -6,7 +6,7 @@ let clientCode: string;
|
|
|
6
6
|
let serverCode: string;
|
|
7
7
|
|
|
8
8
|
const getModuleCode = (code: string, name: string) => {
|
|
9
|
-
const regexp = new RegExp(
|
|
9
|
+
const regexp = new RegExp(`\\./${name}":\\s*\n.+?{\n(.+?)/\\*{3}/\\s`, 's');
|
|
10
10
|
|
|
11
11
|
const match = code.match(regexp);
|
|
12
12
|
|
|
@@ -15,7 +15,7 @@ const normalizeCode = (code: string) => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
const getModuleCode = (code: string, name: string) => {
|
|
18
|
-
const regexp = new RegExp(
|
|
18
|
+
const regexp = new RegExp(`\\./${name}":.+?eval\\("{(.+?)//# sourceURL=`, 's');
|
|
19
19
|
|
|
20
20
|
const match = code.match(regexp);
|
|
21
21
|
|
|
@@ -9,8 +9,8 @@ import type { ForkTsCheckerWebpackPluginOptions } from 'fork-ts-checker-webpack-
|
|
|
9
9
|
|
|
10
10
|
import isObject from '@tinkoff/utils/is/object';
|
|
11
11
|
import isUndefined from '@tinkoff/utils/is/undefined';
|
|
12
|
+
import { RuntimePathPlugin } from '@tramvai/plugin-webpack-builder';
|
|
12
13
|
|
|
13
|
-
import RuntimePathPlugin from '../../plugins/RuntimePathPlugin';
|
|
14
14
|
import type { ApplicationConfigEntry } from '../../../../typings/configEntry/application';
|
|
15
15
|
import type { ConfigManager } from '../../../../config/configManager';
|
|
16
16
|
import common from './common';
|
|
@@ -126,9 +126,9 @@ export const webpackClientConfig = ({
|
|
|
126
126
|
config.plugin('fork-ts-checker').use(require('fork-ts-checker-webpack-plugin'), [options]);
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
// window.ap
|
|
130
|
-
//
|
|
131
|
-
//
|
|
129
|
+
// window.ap is set in packages/modules/render/src/server/blocks/bundleResource/bundleResource.ts
|
|
130
|
+
// in the development build, window.ap is assigned only if there is a valid ASSETS_PREFIX
|
|
131
|
+
// so we change publicPath to window.ap only under the same condition
|
|
132
132
|
if (process.env.ASSETS_PREFIX && process.env.ASSETS_PREFIX !== 'static') {
|
|
133
133
|
config.plugin('runtime-path').use(RuntimePathPlugin, [
|
|
134
134
|
{
|
|
@@ -4,10 +4,10 @@ import path from 'path';
|
|
|
4
4
|
|
|
5
5
|
import isObject from '@tinkoff/utils/is/object';
|
|
6
6
|
import isUndefined from '@tinkoff/utils/is/undefined';
|
|
7
|
+
import { RuntimePathPlugin } from '@tramvai/plugin-webpack-builder';
|
|
7
8
|
|
|
8
9
|
// eslint-disable-next-line no-restricted-imports
|
|
9
10
|
import type { ForkTsCheckerWebpackPluginOptions } from 'fork-ts-checker-webpack-plugin/lib/plugin-options';
|
|
10
|
-
import RuntimePathPlugin from '../../plugins/RuntimePathPlugin';
|
|
11
11
|
|
|
12
12
|
import type { ConfigManager } from '../../../../config/configManager';
|
|
13
13
|
import type { ApplicationConfigEntry } from '../../../../typings/configEntry/application';
|
|
@@ -2,10 +2,11 @@ import path from 'path';
|
|
|
2
2
|
import Config from 'webpack-chain';
|
|
3
3
|
import WebpackBar from 'webpackbar';
|
|
4
4
|
|
|
5
|
+
import { RuntimePathPlugin } from '@tramvai/plugin-webpack-builder';
|
|
6
|
+
|
|
5
7
|
import type { ConfigManager } from '../../../../config/configManager';
|
|
6
8
|
import type { ApplicationConfigEntry } from '../../../../typings/configEntry/application';
|
|
7
9
|
|
|
8
|
-
import RuntimePathPlugin from '../../plugins/RuntimePathPlugin';
|
|
9
10
|
import common from './common';
|
|
10
11
|
import commonDev from '../../common/dev';
|
|
11
12
|
import { commonApplicationDev } from '../dev';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import Config from 'webpack-chain';
|
|
2
2
|
import TerserPlugin from 'terser-webpack-plugin';
|
|
3
3
|
|
|
4
|
+
import { RuntimePathPlugin } from '@tramvai/plugin-webpack-builder';
|
|
5
|
+
|
|
4
6
|
import type { ConfigManager } from '../../../../config/configManager';
|
|
5
7
|
import type { ApplicationConfigEntry } from '../../../../typings/configEntry/application';
|
|
6
8
|
|
|
7
|
-
import RuntimePathPlugin from '../../plugins/RuntimePathPlugin';
|
|
8
9
|
import common from './common';
|
|
9
10
|
import sourcemaps from '../../blocks/sourcemaps';
|
|
10
11
|
import commonProd from '../../common/server/prod';
|
|
@@ -6,7 +6,7 @@ import type { ConfigManager } from '../../../config/configManager';
|
|
|
6
6
|
import type { CliConfigEntry } from '../../../typings/configEntry/cli';
|
|
7
7
|
|
|
8
8
|
export default (configManager: ConfigManager<CliConfigEntry>) => (config: Config) => {
|
|
9
|
-
const { debug, disableProdOptimization } = configManager;
|
|
9
|
+
const { debug, disableProdOptimization, readableOutput } = configManager;
|
|
10
10
|
|
|
11
11
|
const isProductionProfilingEnabled = !!process.env.TRAMVAI_REACT_PROFILE;
|
|
12
12
|
const tramvaiReactProfileTerserOptions = {
|
|
@@ -51,6 +51,13 @@ export default (configManager: ConfigManager<CliConfigEntry>) => (config: Config
|
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
if (readableOutput) {
|
|
55
|
+
// with this option for id of module path to file will be used
|
|
56
|
+
config.optimization.set('moduleIds', 'named');
|
|
57
|
+
// prevent modules from concatenation in single module to easier debug
|
|
58
|
+
config.optimization.set('concatenateModules', false);
|
|
59
|
+
}
|
|
60
|
+
|
|
54
61
|
const { terser } = configManager;
|
|
55
62
|
|
|
56
63
|
config.plugin('terser').use(TerserPlugin, [
|
|
@@ -144,18 +144,10 @@ export default (configManager: ConfigManager<ChildAppConfigEntry>) => (config: C
|
|
|
144
144
|
type: 'assign',
|
|
145
145
|
},
|
|
146
146
|
exposes: {
|
|
147
|
-
//
|
|
148
|
-
// as ChunkCorrelationPlugin fails to resolve
|
|
149
|
-
// entry otherwise.
|
|
150
|
-
// Way to reproduce: build and compare stats file for child-app with absolute and relative paths
|
|
151
|
-
// -----
|
|
152
|
-
// 2) path.relative should use the posix separator because
|
|
147
|
+
// path.relative should use the posix separator because
|
|
153
148
|
// @module-federation/node is parsing relative path incorrectly
|
|
154
149
|
// Debug notes: there is problem in webpack/ModuleFederation or enhanced-resolve
|
|
155
|
-
entry: path
|
|
156
|
-
.relative(config.get('context'), entry)
|
|
157
|
-
.split(path.win32.sep)
|
|
158
|
-
.join(path.posix.sep),
|
|
150
|
+
entry: entry.split(path.win32.sep).join(path.posix.sep),
|
|
159
151
|
},
|
|
160
152
|
shared: sharedModules,
|
|
161
153
|
} as UniversalFederationPluginOptions,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
import type Config from 'webpack-chain';
|
|
3
3
|
|
|
4
|
+
import { RuntimePathPlugin } from '@tramvai/plugin-webpack-builder';
|
|
5
|
+
|
|
4
6
|
import type { ConfigManager } from '../../../../config/configManager';
|
|
5
7
|
|
|
6
8
|
import common from '../common';
|
|
7
9
|
import files from '../../blocks/filesServer';
|
|
8
|
-
import RuntimePathPlugin from '../../plugins/RuntimePathPlugin';
|
|
9
10
|
import type { ChildAppConfigEntry } from '../../../../typings/configEntry/child-app';
|
|
10
11
|
|
|
11
12
|
export default (configManager: ConfigManager<ChildAppConfigEntry>) => (config: Config) => {
|
|
@@ -45,7 +45,7 @@ export default (configManager: ConfigManager<CliConfigEntry>) => (config: Config
|
|
|
45
45
|
config.set('ignoreWarnings', ignoreWarnings);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
config.context(
|
|
48
|
+
config.context(configManager.rootDir);
|
|
49
49
|
config.batch(resolve(configManager));
|
|
50
50
|
config.batch(ignoreLocales());
|
|
51
51
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type Config from 'webpack-chain';
|
|
2
2
|
import webpack from 'webpack';
|
|
3
3
|
import path from 'path';
|
|
4
|
+
|
|
5
|
+
import { RuntimePathPlugin } from '@tramvai/plugin-webpack-builder';
|
|
6
|
+
|
|
4
7
|
import externals from './externals';
|
|
5
8
|
import common from '../common/main';
|
|
6
|
-
import RuntimePathPlugin from '../plugins/RuntimePathPlugin';
|
|
7
9
|
|
|
8
10
|
import type { ConfigManager } from '../../../config/configManager';
|
|
9
11
|
import type { ModuleConfigEntry } from '../../../typings/configEntry/module';
|
|
@@ -1356,23 +1356,23 @@
|
|
|
1356
1356
|
"dotAll": {
|
|
1357
1357
|
"type": "boolean"
|
|
1358
1358
|
},
|
|
1359
|
-
"__@match@
|
|
1359
|
+
"__@match@9031": {
|
|
1360
1360
|
"type": "object",
|
|
1361
1361
|
"additionalProperties": false
|
|
1362
1362
|
},
|
|
1363
|
-
"__@replace@
|
|
1363
|
+
"__@replace@9033": {
|
|
1364
1364
|
"type": "object",
|
|
1365
1365
|
"additionalProperties": false
|
|
1366
1366
|
},
|
|
1367
|
-
"__@search@
|
|
1367
|
+
"__@search@9036": {
|
|
1368
1368
|
"type": "object",
|
|
1369
1369
|
"additionalProperties": false
|
|
1370
1370
|
},
|
|
1371
|
-
"__@split@
|
|
1371
|
+
"__@split@9038": {
|
|
1372
1372
|
"type": "object",
|
|
1373
1373
|
"additionalProperties": false
|
|
1374
1374
|
},
|
|
1375
|
-
"__@matchAll@
|
|
1375
|
+
"__@matchAll@9040": {
|
|
1376
1376
|
"type": "object",
|
|
1377
1377
|
"additionalProperties": false
|
|
1378
1378
|
}
|
|
@@ -2223,23 +2223,23 @@
|
|
|
2223
2223
|
"dotAll": {
|
|
2224
2224
|
"type": "boolean"
|
|
2225
2225
|
},
|
|
2226
|
-
"__@match@
|
|
2226
|
+
"__@match@9031": {
|
|
2227
2227
|
"type": "object",
|
|
2228
2228
|
"additionalProperties": false
|
|
2229
2229
|
},
|
|
2230
|
-
"__@replace@
|
|
2230
|
+
"__@replace@9033": {
|
|
2231
2231
|
"type": "object",
|
|
2232
2232
|
"additionalProperties": false
|
|
2233
2233
|
},
|
|
2234
|
-
"__@search@
|
|
2234
|
+
"__@search@9036": {
|
|
2235
2235
|
"type": "object",
|
|
2236
2236
|
"additionalProperties": false
|
|
2237
2237
|
},
|
|
2238
|
-
"__@split@
|
|
2238
|
+
"__@split@9038": {
|
|
2239
2239
|
"type": "object",
|
|
2240
2240
|
"additionalProperties": false
|
|
2241
2241
|
},
|
|
2242
|
-
"__@matchAll@
|
|
2242
|
+
"__@matchAll@9040": {
|
|
2243
2243
|
"type": "object",
|
|
2244
2244
|
"additionalProperties": false
|
|
2245
2245
|
}
|
|
@@ -3090,23 +3090,23 @@
|
|
|
3090
3090
|
"dotAll": {
|
|
3091
3091
|
"type": "boolean"
|
|
3092
3092
|
},
|
|
3093
|
-
"__@match@
|
|
3093
|
+
"__@match@9031": {
|
|
3094
3094
|
"type": "object",
|
|
3095
3095
|
"additionalProperties": false
|
|
3096
3096
|
},
|
|
3097
|
-
"__@replace@
|
|
3097
|
+
"__@replace@9033": {
|
|
3098
3098
|
"type": "object",
|
|
3099
3099
|
"additionalProperties": false
|
|
3100
3100
|
},
|
|
3101
|
-
"__@search@
|
|
3101
|
+
"__@search@9036": {
|
|
3102
3102
|
"type": "object",
|
|
3103
3103
|
"additionalProperties": false
|
|
3104
3104
|
},
|
|
3105
|
-
"__@split@
|
|
3105
|
+
"__@split@9038": {
|
|
3106
3106
|
"type": "object",
|
|
3107
3107
|
"additionalProperties": false
|
|
3108
3108
|
},
|
|
3109
|
-
"__@matchAll@
|
|
3109
|
+
"__@matchAll@9040": {
|
|
3110
3110
|
"type": "object",
|
|
3111
3111
|
"additionalProperties": false
|
|
3112
3112
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type webpack from 'webpack';
|
|
2
|
-
import type { Compiler } from 'webpack';
|
|
3
|
-
interface Options {
|
|
4
|
-
publicPath: string;
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* RuntimePathPlugin необходим для правильной генерации ссылок на ассеты (картинки и т.п. которые грузятся через file-loader или url-loader)
|
|
8
|
-
*/
|
|
9
|
-
export default class RuntimePathPlugin implements webpack.WebpackPluginInstance {
|
|
10
|
-
protected options: Options;
|
|
11
|
-
constructor(options: Options);
|
|
12
|
-
apply(compiler: Compiler): void;
|
|
13
|
-
}
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=RuntimePathPlugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimePathPlugin.d.ts","sourceRoot":"","sources":["../../../../src/library/webpack/plugins/RuntimePathPlugin.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIxC,UAAU,OAAO;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAkB,YAAW,OAAO,CAAC,qBAAqB;IAC7E,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC;gBAEf,OAAO,EAAE,OAAO;IAI5B,KAAK,CAAC,QAAQ,EAAE,QAAQ;CAsCzB"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const webpack_1 = require("webpack");
|
|
4
|
-
const PLUGIN_NAME = 'RuntimePathPlugin';
|
|
5
|
-
/**
|
|
6
|
-
* RuntimePathPlugin необходим для правильной генерации ссылок на ассеты (картинки и т.п. которые грузятся через file-loader или url-loader)
|
|
7
|
-
*/
|
|
8
|
-
class RuntimePathPlugin {
|
|
9
|
-
constructor(options) {
|
|
10
|
-
this.options = options;
|
|
11
|
-
}
|
|
12
|
-
apply(compiler) {
|
|
13
|
-
const publicPathEval = this.options.publicPath;
|
|
14
|
-
const compilerPublicPath = compiler.options.output.publicPath ?? '';
|
|
15
|
-
const defaultPublicPath = compilerPublicPath === 'auto' ? compilerPublicPath : `"${compilerPublicPath}"`;
|
|
16
|
-
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
|
|
17
|
-
compilation.hooks.runtimeRequirementInTree
|
|
18
|
-
.for(webpack_1.RuntimeGlobals.publicPath)
|
|
19
|
-
.tap(PLUGIN_NAME, (chunk) => {
|
|
20
|
-
// set custom public path only to entries and webpack runtime as this way public path will be constructed in runtime
|
|
21
|
-
// some of the webpack plugins may use [importModule](https://webpack.js.org/api/loaders/#thisimportmodule) that allows execute modules at build time
|
|
22
|
-
// for example mini-css-extract-plugin uses this method that leads to error `window is not defined` at build if we don't
|
|
23
|
-
// prevent adding dynamic code to every chunk altogether
|
|
24
|
-
const chunkName = chunk.name.toString();
|
|
25
|
-
const isEntry = compilation.entries.has(chunkName);
|
|
26
|
-
// webpack runtime chunk with runtimeChunk: 'single' option
|
|
27
|
-
const isWebpackRuntime = chunkName === 'runtime';
|
|
28
|
-
const needToPatchRuntime = isEntry || isWebpackRuntime;
|
|
29
|
-
compilation.addRuntimeModule(chunk, new class extends webpack_1.RuntimeModule {
|
|
30
|
-
generate() {
|
|
31
|
-
// setting dynamic publicPath
|
|
32
|
-
return `${webpack_1.RuntimeGlobals.publicPath} = ${needToPatchRuntime ? publicPathEval : defaultPublicPath};`;
|
|
33
|
-
}
|
|
34
|
-
}('runtime-path-module'));
|
|
35
|
-
// вернуть true чтобы не вызывалась логика по умолчанию
|
|
36
|
-
return true;
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
exports.default = RuntimePathPlugin;
|
|
42
|
-
//# sourceMappingURL=RuntimePathPlugin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimePathPlugin.js","sourceRoot":"","sources":["../../../../src/library/webpack/plugins/RuntimePathPlugin.ts"],"names":[],"mappings":";;AAAA,qCAAwD;AAIxD,MAAM,WAAW,GAAG,mBAAmB,CAAC;AAMxC;;GAEG;AACH,MAAqB,iBAAiB;IAGpC,YAAY,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,QAAkB;QACtB,MAAM,cAAc,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC;QAC/C,MAAM,kBAAkB,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;QACpE,MAAM,iBAAiB,GACrB,kBAAkB,KAAK,MAAM,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,IAAI,kBAAkB,GAAG,CAAC;QAEjF,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,WAAW,EAAE,EAAE;YAC9D,WAAW,CAAC,KAAK,CAAC,wBAAwB;iBACvC,GAAG,CAAC,wBAAc,CAAC,UAAU,CAAC;iBAC9B,GAAG,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE;gBAC1B,oHAAoH;gBACpH,qJAAqJ;gBACrJ,wHAAwH;gBACxH,wDAAwD;gBACxD,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACxC,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;gBACnD,2DAA2D;gBAC3D,MAAM,gBAAgB,GAAG,SAAS,KAAK,SAAS,CAAC;gBAEjD,MAAM,kBAAkB,GAAG,OAAO,IAAI,gBAAgB,CAAC;gBAEvD,WAAW,CAAC,gBAAgB,CAC1B,KAAK,EACL,IAAK,KAAM,SAAQ,uBAAa;oBAC9B,QAAQ;wBACN,6BAA6B;wBAC7B,OAAO,GAAG,wBAAc,CAAC,UAAU,MACjC,kBAAkB,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,iBACxC,GAAG,CAAC;oBACN,CAAC;iBACM,CAAC,qBAAqB,CAAC,CACjC,CAAC;gBAEF,uDAAuD;gBACvD,OAAO,IAAI,CAAC;YACd,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AA7CD,oCA6CC"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { RuntimeModule, RuntimeGlobals } from 'webpack';
|
|
2
|
-
import type webpack from 'webpack';
|
|
3
|
-
import type { Compiler } from 'webpack';
|
|
4
|
-
|
|
5
|
-
const PLUGIN_NAME = 'RuntimePathPlugin';
|
|
6
|
-
|
|
7
|
-
interface Options {
|
|
8
|
-
publicPath: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* RuntimePathPlugin необходим для правильной генерации ссылок на ассеты (картинки и т.п. которые грузятся через file-loader или url-loader)
|
|
13
|
-
*/
|
|
14
|
-
export default class RuntimePathPlugin implements webpack.WebpackPluginInstance {
|
|
15
|
-
protected options: Options;
|
|
16
|
-
|
|
17
|
-
constructor(options: Options) {
|
|
18
|
-
this.options = options;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
apply(compiler: Compiler) {
|
|
22
|
-
const publicPathEval = this.options.publicPath;
|
|
23
|
-
const compilerPublicPath = compiler.options.output.publicPath ?? '';
|
|
24
|
-
const defaultPublicPath =
|
|
25
|
-
compilerPublicPath === 'auto' ? compilerPublicPath : `"${compilerPublicPath}"`;
|
|
26
|
-
|
|
27
|
-
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
|
|
28
|
-
compilation.hooks.runtimeRequirementInTree
|
|
29
|
-
.for(RuntimeGlobals.publicPath)
|
|
30
|
-
.tap(PLUGIN_NAME, (chunk) => {
|
|
31
|
-
// set custom public path only to entries and webpack runtime as this way public path will be constructed in runtime
|
|
32
|
-
// some of the webpack plugins may use [importModule](https://webpack.js.org/api/loaders/#thisimportmodule) that allows execute modules at build time
|
|
33
|
-
// for example mini-css-extract-plugin uses this method that leads to error `window is not defined` at build if we don't
|
|
34
|
-
// prevent adding dynamic code to every chunk altogether
|
|
35
|
-
const chunkName = chunk.name.toString();
|
|
36
|
-
const isEntry = compilation.entries.has(chunkName);
|
|
37
|
-
// webpack runtime chunk with runtimeChunk: 'single' option
|
|
38
|
-
const isWebpackRuntime = chunkName === 'runtime';
|
|
39
|
-
|
|
40
|
-
const needToPatchRuntime = isEntry || isWebpackRuntime;
|
|
41
|
-
|
|
42
|
-
compilation.addRuntimeModule(
|
|
43
|
-
chunk,
|
|
44
|
-
new (class extends RuntimeModule {
|
|
45
|
-
generate() {
|
|
46
|
-
// setting dynamic publicPath
|
|
47
|
-
return `${RuntimeGlobals.publicPath} = ${
|
|
48
|
-
needToPatchRuntime ? publicPathEval : defaultPublicPath
|
|
49
|
-
};`;
|
|
50
|
-
}
|
|
51
|
-
} as any)('runtime-path-module')
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
// вернуть true чтобы не вызывалась логика по умолчанию
|
|
55
|
-
return true;
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
}
|