@commercetools-frontend/mc-scripts 27.4.1 → 27.5.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/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +15 -10
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +15 -10
- package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +15 -10
- package/dist/{build-8941e757.cjs.prod.js → build-2dde4016.cjs.prod.js} +4 -5
- package/dist/{build-43e4ad06.esm.js → build-51b09598.esm.js} +4 -5
- package/dist/{build-34cff19d.cjs.dev.js → build-7a3a4b48.cjs.dev.js} +4 -5
- package/dist/{build-vite-8cae71a0.esm.js → build-vite-1526e4f8.esm.js} +109 -20
- package/dist/{build-vite-837e7c94.cjs.dev.js → build-vite-2fb9320e.cjs.dev.js} +118 -20
- package/dist/{build-vite-b007241b.cjs.prod.js → build-vite-71889a4a.cjs.prod.js} +118 -20
- package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
- package/dist/{config-sync-c3777ff2.esm.js → config-sync-38bb2049.esm.js} +3 -3
- package/dist/{config-sync-670fe293.cjs.prod.js → config-sync-74ddb92a.cjs.prod.js} +3 -3
- package/dist/{config-sync-ci-c239e83b.cjs.prod.js → config-sync-ci-0d638a98.cjs.prod.js} +3 -3
- package/dist/{config-sync-ci-2a86810d.cjs.dev.js → config-sync-ci-f083fe23.cjs.dev.js} +3 -3
- package/dist/{config-sync-ci-d2a1a560.esm.js → config-sync-ci-f2adf187.esm.js} +3 -3
- package/dist/{config-sync-91880023.cjs.dev.js → config-sync-eac5312f.cjs.dev.js} +3 -3
- package/dist/{config-sync-helpers-2bbb7ef2.cjs.dev.js → config-sync-helpers-165afb6b.cjs.dev.js} +1 -1
- package/dist/{config-sync-helpers-afd3d75e.cjs.prod.js → config-sync-helpers-1dad1481.cjs.prod.js} +1 -1
- package/dist/{config-sync-helpers-9c2cbd1b.esm.js → config-sync-helpers-2bf06642.esm.js} +1 -1
- package/dist/{create-postcss-config-880af1a5.cjs.dev.js → create-postcss-config-1b021fb2.cjs.dev.js} +1 -1
- package/dist/{create-postcss-config-f732c04c.cjs.prod.js → create-postcss-config-434fe673.cjs.prod.js} +1 -1
- package/dist/{create-postcss-config-257247d7.esm.js → create-postcss-config-505c5a4e.esm.js} +1 -1
- package/dist/{create-webpack-config-for-development-22db7e21.cjs.prod.js → create-webpack-config-for-development-1db101e2.cjs.prod.js} +4 -5
- package/dist/{create-webpack-config-for-development-736b37a1.cjs.dev.js → create-webpack-config-for-development-65abeb3f.cjs.dev.js} +4 -5
- package/dist/{create-webpack-config-for-development-fa4927c0.esm.js → create-webpack-config-for-development-fd981a20.esm.js} +2 -3
- package/dist/{create-webpack-config-for-production-7888ee9e.cjs.dev.js → create-webpack-config-for-production-010a6fb4.cjs.dev.js} +4 -5
- package/dist/{create-webpack-config-for-production-da525cc3.cjs.prod.js → create-webpack-config-for-production-a239ba22.cjs.prod.js} +4 -5
- package/dist/{create-webpack-config-for-production-cfb9e90a.esm.js → create-webpack-config-for-production-bb66207f.esm.js} +2 -3
- package/dist/declarations/src/types.d.ts +3 -0
- package/dist/{deployment-previews-set-4ee2a4e5.esm.js → deployment-previews-set-6ceff6a3.esm.js} +2 -2
- package/dist/{deployment-previews-set-0a6480d0.cjs.prod.js → deployment-previews-set-beeaeb6d.cjs.prod.js} +2 -2
- package/dist/{deployment-previews-set-8c400e53.cjs.dev.js → deployment-previews-set-c4f8a461.cjs.dev.js} +2 -2
- package/dist/{graphql-requests-eb88492d.cjs.prod.js → graphql-requests-4c97fe92.cjs.prod.js} +1 -1
- package/dist/{graphql-requests-569dae6e.esm.js → graphql-requests-53a1f5dd.esm.js} +1 -1
- package/dist/{graphql-requests-25e057ed.cjs.dev.js → graphql-requests-86c87041.cjs.dev.js} +1 -1
- package/dist/{login-c18cb968.esm.js → login-1e4ddcda.esm.js} +1 -1
- package/dist/{login-1fd80a8d.cjs.dev.js → login-382b51ea.cjs.dev.js} +1 -1
- package/dist/{login-a6d93fd3.cjs.prod.js → login-c151a059.cjs.prod.js} +1 -1
- package/dist/{optimizations-bf991634.esm.js → optimizations-54382f7b.esm.js} +24 -9
- package/dist/{optimizations-fb93514f.cjs.prod.js → optimizations-56be74d6.cjs.dev.js} +24 -9
- package/dist/{optimizations-7789145e.cjs.dev.js → optimizations-da5a0cfa.cjs.prod.js} +24 -9
- package/dist/{package-8926f3f0.esm.js → package-02f0532d.esm.js} +13 -14
- package/dist/{package-2bdb4e7b.cjs.prod.js → package-c8f39856.cjs.dev.js} +13 -14
- package/dist/{package-d8f5b403.cjs.dev.js → package-dfc9c56b.cjs.prod.js} +13 -14
- package/dist/serve-00294d34.esm.js +77 -0
- package/dist/serve-81db9f2e.cjs.dev.js +88 -0
- package/dist/serve-d62433a1.cjs.prod.js +88 -0
- package/dist/{start-e1dffbe2.cjs.dev.js → start-32bc9eca.cjs.dev.js} +4 -5
- package/dist/{start-a35e973b.cjs.prod.js → start-5eb60c74.cjs.prod.js} +4 -5
- package/dist/{start-8d77546d.esm.js → start-6fc3b235.esm.js} +4 -5
- package/package.json +13 -14
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +5 -6
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +5 -6
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +5 -6
- package/dist/has-jsx-runtime-aa5d21ee.cjs.dev.js +0 -15
- package/dist/has-jsx-runtime-c3202df5.cjs.prod.js +0 -15
- package/dist/has-jsx-runtime-e3ecb09b.esm.js +0 -13
- package/dist/serve-38456e1b.cjs.dev.js +0 -67
- package/dist/serve-be1f9439.esm.js +0 -57
- package/dist/serve-cc4a766d.cjs.prod.js +0 -67
|
@@ -12,8 +12,16 @@ var vite = require('vite');
|
|
|
12
12
|
var viteBundleAnalyzer = require('vite-bundle-analyzer');
|
|
13
13
|
var assets = require('@commercetools-frontend/assets');
|
|
14
14
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
15
|
-
var optimizations = require('./optimizations-7789145e.cjs.dev.js');
|
|
16
15
|
var paths = require('./paths-b76fc753.cjs.dev.js');
|
|
16
|
+
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
17
|
+
var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
|
|
18
|
+
var _Map = require('@babel/runtime-corejs3/core-js-stable/map');
|
|
19
|
+
var _keysInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/keys');
|
|
20
|
+
var _Set = require('@babel/runtime-corejs3/core-js-stable/set');
|
|
21
|
+
var _indexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
|
|
22
|
+
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
23
|
+
var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
24
|
+
var _sortInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/sort');
|
|
17
25
|
var cliLib = require('@formatjs/cli-lib');
|
|
18
26
|
var pluginutils = require('@rollup/pluginutils');
|
|
19
27
|
var i18nMessageComplilation = require('./i18n-message-complilation-7311cb29.cjs.dev.js');
|
|
@@ -21,23 +29,10 @@ var fs = require('node:fs');
|
|
|
21
29
|
var path = require('node:path');
|
|
22
30
|
var glob = require('glob');
|
|
23
31
|
var vitePluginSvgr = require('./vite-plugin-svgr-7d06f400.cjs.dev.js');
|
|
24
|
-
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
25
|
-
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
26
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
27
|
-
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
28
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
29
|
-
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
30
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
31
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
32
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
33
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
34
|
-
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
35
|
-
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
36
|
-
require('chalk');
|
|
37
32
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
38
33
|
require('fs');
|
|
39
34
|
require('./does-file-exist-eb86baca.cjs.dev.js');
|
|
40
|
-
require('
|
|
35
|
+
require('chalk');
|
|
41
36
|
require('crypto');
|
|
42
37
|
require('@babel/runtime-corejs3/core-js/instance/match-all');
|
|
43
38
|
|
|
@@ -50,6 +45,15 @@ var path__default$1 = /*#__PURE__*/_interopDefault(path$1);
|
|
|
50
45
|
var pluginGraphql__default = /*#__PURE__*/_interopDefault(pluginGraphql);
|
|
51
46
|
var pluginReact__default = /*#__PURE__*/_interopDefault(pluginReact);
|
|
52
47
|
var fs__default$1 = /*#__PURE__*/_interopDefault(fs$1);
|
|
48
|
+
var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
|
|
49
|
+
var _Object$values__default = /*#__PURE__*/_interopDefault(_Object$values);
|
|
50
|
+
var _Map__default = /*#__PURE__*/_interopDefault(_Map);
|
|
51
|
+
var _keysInstanceProperty__default = /*#__PURE__*/_interopDefault(_keysInstanceProperty);
|
|
52
|
+
var _Set__default = /*#__PURE__*/_interopDefault(_Set);
|
|
53
|
+
var _indexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_indexOfInstanceProperty);
|
|
54
|
+
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
|
|
55
|
+
var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
|
|
56
|
+
var _sortInstanceProperty__default = /*#__PURE__*/_interopDefault(_sortInstanceProperty);
|
|
53
57
|
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
54
58
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
55
59
|
|
|
@@ -58,6 +62,94 @@ function nonNullable(value) {
|
|
|
58
62
|
return value !== null && value !== undefined;
|
|
59
63
|
}
|
|
60
64
|
|
|
65
|
+
// Structural subset of Rollup's OutputChunk / OutputBundle. We avoid
|
|
66
|
+
// importing the real types because Rollup is a transitive dep via Vite and
|
|
67
|
+
// is not declared in mc-scripts' own `dependencies`. We only touch three
|
|
68
|
+
// fields, so a local type is cheaper than adding a dep.
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Health check: after Rollup produces the output bundle, verify that the
|
|
72
|
+
* graph of cross-chunk imports is a DAG. Chunk-level cycles are a class of
|
|
73
|
+
* bug that doesn't fail at build time but crashes at runtime the moment one
|
|
74
|
+
* chunk reads a variable from its partner before that partner finishes
|
|
75
|
+
* initializing (TDZ). The historical failure mode was `@commercetools-uikit/icons`
|
|
76
|
+
* ↔ `app-shell` under `manualChunks`.
|
|
77
|
+
*/
|
|
78
|
+
function pluginChunkCycleCheck() {
|
|
79
|
+
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
80
|
+
const onCycle = options.onCycle ?? 'error';
|
|
81
|
+
return {
|
|
82
|
+
name: 'vite-plugin-chunk-cycle-check',
|
|
83
|
+
apply: 'build',
|
|
84
|
+
// `generateBundle` runs once the chunk graph is final but before files
|
|
85
|
+
// hit disk — the cheapest place to inspect it.
|
|
86
|
+
generateBundle(_, bundle) {
|
|
87
|
+
const cycles = findChunkCycles(bundle);
|
|
88
|
+
if (cycles.length === 0) return;
|
|
89
|
+
const formatted = _mapInstanceProperty__default["default"](cycles).call(cycles, cycle => ` ${cycle.join(' → ')}`).join('\n');
|
|
90
|
+
const message = `Detected circular imports between output chunks:\n${formatted}\n` + `\nChunk cycles produce TDZ runtime errors (e.g. "X is undefined") ` + `because Rollup emits real ESM and one chunk can observe another ` + `chunk's not-yet-initialized top-level vars mid-evaluation. ` + `Review \`output.manualChunks\` or any plugin assigning chunks.`;
|
|
91
|
+
if (onCycle === 'error') {
|
|
92
|
+
this.error(message);
|
|
93
|
+
} else {
|
|
94
|
+
this.warn(message);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Pure graph algorithm extracted for direct unit testing. Builds the
|
|
102
|
+
* chunk-to-chunk import graph and returns every elementary cycle found.
|
|
103
|
+
*/
|
|
104
|
+
function findChunkCycles(bundle) {
|
|
105
|
+
var _context;
|
|
106
|
+
const chunks = _filterInstanceProperty__default["default"](_context = _Object$values__default["default"](bundle)).call(_context, entry => entry.type === 'chunk');
|
|
107
|
+
const graph = new _Map__default["default"]();
|
|
108
|
+
for (const chunk of chunks) {
|
|
109
|
+
// `imports` covers static imports between chunks. `dynamicImports` are
|
|
110
|
+
// deliberately ignored — those create legitimate lazy boundaries that
|
|
111
|
+
// can back-reference the parent without a runtime cycle.
|
|
112
|
+
graph.set(chunk.fileName, chunk.imports);
|
|
113
|
+
}
|
|
114
|
+
const WHITE = 0;
|
|
115
|
+
const GRAY = 1;
|
|
116
|
+
const BLACK = 2;
|
|
117
|
+
const color = new _Map__default["default"]();
|
|
118
|
+
for (const name of _keysInstanceProperty__default["default"](graph).call(graph)) color.set(name, WHITE);
|
|
119
|
+
const cycles = [];
|
|
120
|
+
const seenCycleKeys = new _Set__default["default"]();
|
|
121
|
+
const pathStack = [];
|
|
122
|
+
const visit = node => {
|
|
123
|
+
color.set(node, GRAY);
|
|
124
|
+
pathStack.push(node);
|
|
125
|
+
for (const next of graph.get(node) ?? []) {
|
|
126
|
+
// Imports may reference assets or chunks outside our map (e.g. CSS).
|
|
127
|
+
if (!graph.has(next)) continue;
|
|
128
|
+
const nextColor = color.get(next);
|
|
129
|
+
if (nextColor === GRAY) {
|
|
130
|
+
var _context2, _context3, _context4;
|
|
131
|
+
const startIdx = _indexOfInstanceProperty__default["default"](pathStack).call(pathStack, next);
|
|
132
|
+
const cycle = _concatInstanceProperty__default["default"](_context2 = _sliceInstanceProperty__default["default"](pathStack).call(pathStack, startIdx)).call(_context2, next);
|
|
133
|
+
// Normalize so we report each elementary cycle only once regardless
|
|
134
|
+
// of which node in the cycle DFS entered from.
|
|
135
|
+
const key = _sortInstanceProperty__default["default"](_context3 = _sliceInstanceProperty__default["default"](_context4 = [...cycle]).call(_context4, 0, -1)).call(_context3).join('|');
|
|
136
|
+
if (!seenCycleKeys.has(key)) {
|
|
137
|
+
seenCycleKeys.add(key);
|
|
138
|
+
cycles.push(cycle);
|
|
139
|
+
}
|
|
140
|
+
} else if (nextColor === WHITE) {
|
|
141
|
+
visit(next);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
pathStack.pop();
|
|
145
|
+
color.set(node, BLACK);
|
|
146
|
+
};
|
|
147
|
+
for (const node of _keysInstanceProperty__default["default"](graph).call(graph)) {
|
|
148
|
+
if (color.get(node) === WHITE) visit(node);
|
|
149
|
+
}
|
|
150
|
+
return cycles;
|
|
151
|
+
}
|
|
152
|
+
|
|
61
153
|
// This script/function is injected into the `index.html` and used by Vite
|
|
62
154
|
// on runtime to build the assets URL (for example when using a separate CDN for the assets).
|
|
63
155
|
// Inspired by https://github.com/vitejs/vite/blob/main/playground/assets/vite.config-runtime-base.js
|
|
@@ -165,7 +257,6 @@ async function run() {
|
|
|
165
257
|
fs__default$1["default"].writeFileSync(paths.paths.appIndexHtml, html, {
|
|
166
258
|
encoding: 'utf8'
|
|
167
259
|
});
|
|
168
|
-
const appDependencies = require(paths.paths.appPackageJson).dependencies;
|
|
169
260
|
await vite.build({
|
|
170
261
|
root: paths.paths.appRoot,
|
|
171
262
|
base: './',
|
|
@@ -184,9 +275,12 @@ async function run() {
|
|
|
184
275
|
// NOTE that after the build, Vite will write the `index.html` (template)
|
|
185
276
|
// at the `/public/public/index.html` location. See `fs.renameSync` below.
|
|
186
277
|
input: paths.paths.appIndexHtml,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
278
|
+
// NOTE: we intentionally do not set `output.manualChunks` here. The
|
|
279
|
+
// declarative form does not claim transitive deps, so shared packages
|
|
280
|
+
// (babel-runtime, emotion, uikit internals) can land in a chunk that
|
|
281
|
+
// also imports back from another chunk — producing a TDZ cycle at
|
|
282
|
+
// runtime (historical "aM is undefined" crash with the icons/app-shell
|
|
283
|
+
// split). Rollup's default chunking handles co-location correctly.
|
|
190
284
|
// Reduce the memory footprint when building sourcemaps.
|
|
191
285
|
// https://github.com/vitejs/vite/issues/2433#issuecomment-1361094727
|
|
192
286
|
cache: false
|
|
@@ -232,7 +326,11 @@ async function run() {
|
|
|
232
326
|
outputDir: paths.paths.appBuild,
|
|
233
327
|
patterns: ['*.react-*.svg'],
|
|
234
328
|
verbose: true // logs the files that are removed
|
|
235
|
-
}), vitePluginDynamicBaseAssetsGlobals(), vitePluginI18nMessageCompilation(),
|
|
329
|
+
}), vitePluginDynamicBaseAssetsGlobals(), vitePluginI18nMessageCompilation(),
|
|
330
|
+
// Fail the build if the emitted chunk graph contains circular imports.
|
|
331
|
+
// Chunk cycles are silent at build time but crash at runtime with TDZ
|
|
332
|
+
// errors (historical "aM is undefined" from the icons/app-shell split).
|
|
333
|
+
pluginChunkCycleCheck(), process.env.ANALYZE_BUNDLE === 'true' && viteBundleAnalyzer.analyzer({
|
|
236
334
|
defaultSizes: 'stat',
|
|
237
335
|
openAnalyzer: true
|
|
238
336
|
}), process.env.ANALYZE_BUNDLE_TREE === 'true' && rollupPluginVisualizer.visualizer({
|
|
@@ -12,8 +12,16 @@ var vite = require('vite');
|
|
|
12
12
|
var viteBundleAnalyzer = require('vite-bundle-analyzer');
|
|
13
13
|
var assets = require('@commercetools-frontend/assets');
|
|
14
14
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
15
|
-
var optimizations = require('./optimizations-fb93514f.cjs.prod.js');
|
|
16
15
|
var paths = require('./paths-7768b440.cjs.prod.js');
|
|
16
|
+
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
17
|
+
var _Object$values = require('@babel/runtime-corejs3/core-js-stable/object/values');
|
|
18
|
+
var _Map = require('@babel/runtime-corejs3/core-js-stable/map');
|
|
19
|
+
var _keysInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/keys');
|
|
20
|
+
var _Set = require('@babel/runtime-corejs3/core-js-stable/set');
|
|
21
|
+
var _indexOfInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/index-of');
|
|
22
|
+
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
23
|
+
var _sliceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/slice');
|
|
24
|
+
var _sortInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/sort');
|
|
17
25
|
var cliLib = require('@formatjs/cli-lib');
|
|
18
26
|
var pluginutils = require('@rollup/pluginutils');
|
|
19
27
|
var i18nMessageComplilation = require('./i18n-message-complilation-7762da61.cjs.prod.js');
|
|
@@ -21,23 +29,10 @@ var fs = require('node:fs');
|
|
|
21
29
|
var path = require('node:path');
|
|
22
30
|
var glob = require('glob');
|
|
23
31
|
var vitePluginSvgr = require('./vite-plugin-svgr-4034a834.cjs.prod.js');
|
|
24
|
-
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
25
|
-
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
26
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
27
|
-
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
28
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
29
|
-
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
30
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
31
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
32
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
33
|
-
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
34
|
-
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
35
|
-
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
36
|
-
require('chalk');
|
|
37
32
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
38
33
|
require('fs');
|
|
39
34
|
require('./does-file-exist-be53305d.cjs.prod.js');
|
|
40
|
-
require('
|
|
35
|
+
require('chalk');
|
|
41
36
|
require('crypto');
|
|
42
37
|
require('@babel/runtime-corejs3/core-js/instance/match-all');
|
|
43
38
|
|
|
@@ -50,6 +45,15 @@ var path__default$1 = /*#__PURE__*/_interopDefault(path$1);
|
|
|
50
45
|
var pluginGraphql__default = /*#__PURE__*/_interopDefault(pluginGraphql);
|
|
51
46
|
var pluginReact__default = /*#__PURE__*/_interopDefault(pluginReact);
|
|
52
47
|
var fs__default$1 = /*#__PURE__*/_interopDefault(fs$1);
|
|
48
|
+
var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
|
|
49
|
+
var _Object$values__default = /*#__PURE__*/_interopDefault(_Object$values);
|
|
50
|
+
var _Map__default = /*#__PURE__*/_interopDefault(_Map);
|
|
51
|
+
var _keysInstanceProperty__default = /*#__PURE__*/_interopDefault(_keysInstanceProperty);
|
|
52
|
+
var _Set__default = /*#__PURE__*/_interopDefault(_Set);
|
|
53
|
+
var _indexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_indexOfInstanceProperty);
|
|
54
|
+
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
|
|
55
|
+
var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
|
|
56
|
+
var _sortInstanceProperty__default = /*#__PURE__*/_interopDefault(_sortInstanceProperty);
|
|
53
57
|
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
54
58
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
55
59
|
|
|
@@ -58,6 +62,94 @@ function nonNullable(value) {
|
|
|
58
62
|
return value !== null && value !== undefined;
|
|
59
63
|
}
|
|
60
64
|
|
|
65
|
+
// Structural subset of Rollup's OutputChunk / OutputBundle. We avoid
|
|
66
|
+
// importing the real types because Rollup is a transitive dep via Vite and
|
|
67
|
+
// is not declared in mc-scripts' own `dependencies`. We only touch three
|
|
68
|
+
// fields, so a local type is cheaper than adding a dep.
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Health check: after Rollup produces the output bundle, verify that the
|
|
72
|
+
* graph of cross-chunk imports is a DAG. Chunk-level cycles are a class of
|
|
73
|
+
* bug that doesn't fail at build time but crashes at runtime the moment one
|
|
74
|
+
* chunk reads a variable from its partner before that partner finishes
|
|
75
|
+
* initializing (TDZ). The historical failure mode was `@commercetools-uikit/icons`
|
|
76
|
+
* ↔ `app-shell` under `manualChunks`.
|
|
77
|
+
*/
|
|
78
|
+
function pluginChunkCycleCheck() {
|
|
79
|
+
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
80
|
+
const onCycle = options.onCycle ?? 'error';
|
|
81
|
+
return {
|
|
82
|
+
name: 'vite-plugin-chunk-cycle-check',
|
|
83
|
+
apply: 'build',
|
|
84
|
+
// `generateBundle` runs once the chunk graph is final but before files
|
|
85
|
+
// hit disk — the cheapest place to inspect it.
|
|
86
|
+
generateBundle(_, bundle) {
|
|
87
|
+
const cycles = findChunkCycles(bundle);
|
|
88
|
+
if (cycles.length === 0) return;
|
|
89
|
+
const formatted = _mapInstanceProperty__default["default"](cycles).call(cycles, cycle => ` ${cycle.join(' → ')}`).join('\n');
|
|
90
|
+
const message = `Detected circular imports between output chunks:\n${formatted}\n` + `\nChunk cycles produce TDZ runtime errors (e.g. "X is undefined") ` + `because Rollup emits real ESM and one chunk can observe another ` + `chunk's not-yet-initialized top-level vars mid-evaluation. ` + `Review \`output.manualChunks\` or any plugin assigning chunks.`;
|
|
91
|
+
if (onCycle === 'error') {
|
|
92
|
+
this.error(message);
|
|
93
|
+
} else {
|
|
94
|
+
this.warn(message);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Pure graph algorithm extracted for direct unit testing. Builds the
|
|
102
|
+
* chunk-to-chunk import graph and returns every elementary cycle found.
|
|
103
|
+
*/
|
|
104
|
+
function findChunkCycles(bundle) {
|
|
105
|
+
var _context;
|
|
106
|
+
const chunks = _filterInstanceProperty__default["default"](_context = _Object$values__default["default"](bundle)).call(_context, entry => entry.type === 'chunk');
|
|
107
|
+
const graph = new _Map__default["default"]();
|
|
108
|
+
for (const chunk of chunks) {
|
|
109
|
+
// `imports` covers static imports between chunks. `dynamicImports` are
|
|
110
|
+
// deliberately ignored — those create legitimate lazy boundaries that
|
|
111
|
+
// can back-reference the parent without a runtime cycle.
|
|
112
|
+
graph.set(chunk.fileName, chunk.imports);
|
|
113
|
+
}
|
|
114
|
+
const WHITE = 0;
|
|
115
|
+
const GRAY = 1;
|
|
116
|
+
const BLACK = 2;
|
|
117
|
+
const color = new _Map__default["default"]();
|
|
118
|
+
for (const name of _keysInstanceProperty__default["default"](graph).call(graph)) color.set(name, WHITE);
|
|
119
|
+
const cycles = [];
|
|
120
|
+
const seenCycleKeys = new _Set__default["default"]();
|
|
121
|
+
const pathStack = [];
|
|
122
|
+
const visit = node => {
|
|
123
|
+
color.set(node, GRAY);
|
|
124
|
+
pathStack.push(node);
|
|
125
|
+
for (const next of graph.get(node) ?? []) {
|
|
126
|
+
// Imports may reference assets or chunks outside our map (e.g. CSS).
|
|
127
|
+
if (!graph.has(next)) continue;
|
|
128
|
+
const nextColor = color.get(next);
|
|
129
|
+
if (nextColor === GRAY) {
|
|
130
|
+
var _context2, _context3, _context4;
|
|
131
|
+
const startIdx = _indexOfInstanceProperty__default["default"](pathStack).call(pathStack, next);
|
|
132
|
+
const cycle = _concatInstanceProperty__default["default"](_context2 = _sliceInstanceProperty__default["default"](pathStack).call(pathStack, startIdx)).call(_context2, next);
|
|
133
|
+
// Normalize so we report each elementary cycle only once regardless
|
|
134
|
+
// of which node in the cycle DFS entered from.
|
|
135
|
+
const key = _sortInstanceProperty__default["default"](_context3 = _sliceInstanceProperty__default["default"](_context4 = [...cycle]).call(_context4, 0, -1)).call(_context3).join('|');
|
|
136
|
+
if (!seenCycleKeys.has(key)) {
|
|
137
|
+
seenCycleKeys.add(key);
|
|
138
|
+
cycles.push(cycle);
|
|
139
|
+
}
|
|
140
|
+
} else if (nextColor === WHITE) {
|
|
141
|
+
visit(next);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
pathStack.pop();
|
|
145
|
+
color.set(node, BLACK);
|
|
146
|
+
};
|
|
147
|
+
for (const node of _keysInstanceProperty__default["default"](graph).call(graph)) {
|
|
148
|
+
if (color.get(node) === WHITE) visit(node);
|
|
149
|
+
}
|
|
150
|
+
return cycles;
|
|
151
|
+
}
|
|
152
|
+
|
|
61
153
|
// This script/function is injected into the `index.html` and used by Vite
|
|
62
154
|
// on runtime to build the assets URL (for example when using a separate CDN for the assets).
|
|
63
155
|
// Inspired by https://github.com/vitejs/vite/blob/main/playground/assets/vite.config-runtime-base.js
|
|
@@ -165,7 +257,6 @@ async function run() {
|
|
|
165
257
|
fs__default$1["default"].writeFileSync(paths.paths.appIndexHtml, html, {
|
|
166
258
|
encoding: 'utf8'
|
|
167
259
|
});
|
|
168
|
-
const appDependencies = require(paths.paths.appPackageJson).dependencies;
|
|
169
260
|
await vite.build({
|
|
170
261
|
root: paths.paths.appRoot,
|
|
171
262
|
base: './',
|
|
@@ -184,9 +275,12 @@ async function run() {
|
|
|
184
275
|
// NOTE that after the build, Vite will write the `index.html` (template)
|
|
185
276
|
// at the `/public/public/index.html` location. See `fs.renameSync` below.
|
|
186
277
|
input: paths.paths.appIndexHtml,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
278
|
+
// NOTE: we intentionally do not set `output.manualChunks` here. The
|
|
279
|
+
// declarative form does not claim transitive deps, so shared packages
|
|
280
|
+
// (babel-runtime, emotion, uikit internals) can land in a chunk that
|
|
281
|
+
// also imports back from another chunk — producing a TDZ cycle at
|
|
282
|
+
// runtime (historical "aM is undefined" crash with the icons/app-shell
|
|
283
|
+
// split). Rollup's default chunking handles co-location correctly.
|
|
190
284
|
// Reduce the memory footprint when building sourcemaps.
|
|
191
285
|
// https://github.com/vitejs/vite/issues/2433#issuecomment-1361094727
|
|
192
286
|
cache: false
|
|
@@ -232,7 +326,11 @@ async function run() {
|
|
|
232
326
|
outputDir: paths.paths.appBuild,
|
|
233
327
|
patterns: ['*.react-*.svg'],
|
|
234
328
|
verbose: true // logs the files that are removed
|
|
235
|
-
}), vitePluginDynamicBaseAssetsGlobals(), vitePluginI18nMessageCompilation(),
|
|
329
|
+
}), vitePluginDynamicBaseAssetsGlobals(), vitePluginI18nMessageCompilation(),
|
|
330
|
+
// Fail the build if the emitted chunk graph contains circular imports.
|
|
331
|
+
// Chunk cycles are silent at build time but crash at runtime with TDZ
|
|
332
|
+
// errors (historical "aM is undefined" from the icons/app-shell split).
|
|
333
|
+
pluginChunkCycleCheck(), process.env.ANALYZE_BUNDLE === 'true' && viteBundleAnalyzer.analyzer({
|
|
236
334
|
defaultSizes: 'stat',
|
|
237
335
|
openAnalyzer: true
|
|
238
336
|
}), process.env.ANALYZE_BUNDLE_TREE === 'true' && rollupPluginVisualizer.visualizer({
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vendorsToTranspile = require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
|
|
6
6
|
|
|
7
7
|
// NOTE: This string will be replaced on build time with the package version.
|
|
8
|
-
var version = "27.
|
|
8
|
+
var version = "27.5.0";
|
|
9
9
|
|
|
10
10
|
// These exports are deprecated.
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vendorsToTranspile = require('./vendors-to-transpile-04a49d40.cjs.prod.js');
|
|
6
6
|
|
|
7
7
|
// NOTE: This string will be replaced on build time with the package version.
|
|
8
|
-
var version = "27.
|
|
8
|
+
var version = "27.5.0";
|
|
9
9
|
|
|
10
10
|
// These exports are deprecated.
|
|
11
11
|
|
|
@@ -5,9 +5,9 @@ import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/insta
|
|
|
5
5
|
import chalk from 'chalk';
|
|
6
6
|
import prompts from 'prompts';
|
|
7
7
|
import { processConfig } from '@commercetools-frontend/application-config';
|
|
8
|
-
import { i as isCustomViewData, c as checkCustomApplicationStatus, p as performCreateCustomApplication, a as performUpdateCustomApplication, b as checkCustomViewStatus, d as performCreateCustomView, e as performUpdateCustomView } from './config-sync-helpers-
|
|
8
|
+
import { i as isCustomViewData, c as checkCustomApplicationStatus, p as performCreateCustomApplication, a as performUpdateCustomApplication, b as checkCustomViewStatus, d as performCreateCustomView, e as performUpdateCustomView } from './config-sync-helpers-2bf06642.esm.js';
|
|
9
9
|
import { C as CredentialsStorage } from './credentials-storage-67deadc3.esm.js';
|
|
10
|
-
import { f as fetchUserOrganizations } from './graphql-requests-
|
|
10
|
+
import { f as fetchUserOrganizations } from './graphql-requests-53a1f5dd.esm.js';
|
|
11
11
|
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
12
12
|
import 'lodash/omit';
|
|
13
13
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
@@ -34,7 +34,7 @@ import 'graphql';
|
|
|
34
34
|
import 'graphql-request';
|
|
35
35
|
import '@commercetools-frontend/constants';
|
|
36
36
|
import '@commercetools/http-user-agent';
|
|
37
|
-
import './package-
|
|
37
|
+
import './package-02f0532d.esm.js';
|
|
38
38
|
|
|
39
39
|
const credentialsStorage = new CredentialsStorage();
|
|
40
40
|
async function promptForOrganization(_ref) {
|
|
@@ -7,9 +7,9 @@ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
|
|
|
7
7
|
var chalk = require('chalk');
|
|
8
8
|
var prompts = require('prompts');
|
|
9
9
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
10
|
-
var configSyncHelpers = require('./config-sync-helpers-
|
|
10
|
+
var configSyncHelpers = require('./config-sync-helpers-1dad1481.cjs.prod.js');
|
|
11
11
|
var credentialsStorage$1 = require('./credentials-storage-ea1c16dc.cjs.prod.js');
|
|
12
|
-
var graphqlRequests = require('./graphql-requests-
|
|
12
|
+
var graphqlRequests = require('./graphql-requests-4c97fe92.cjs.prod.js');
|
|
13
13
|
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
14
14
|
require('lodash/omit');
|
|
15
15
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -36,7 +36,7 @@ require('graphql');
|
|
|
36
36
|
require('graphql-request');
|
|
37
37
|
require('@commercetools-frontend/constants');
|
|
38
38
|
require('@commercetools/http-user-agent');
|
|
39
|
-
require('./package-
|
|
39
|
+
require('./package-dfc9c56b.cjs.prod.js');
|
|
40
40
|
|
|
41
41
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
42
42
|
|
|
@@ -5,8 +5,8 @@ var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
|
|
|
5
5
|
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
6
6
|
var chalk = require('chalk');
|
|
7
7
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
8
|
-
var configSyncHelpers = require('./config-sync-helpers-
|
|
9
|
-
var graphqlRequests = require('./graphql-requests-
|
|
8
|
+
var configSyncHelpers = require('./config-sync-helpers-1dad1481.cjs.prod.js');
|
|
9
|
+
var graphqlRequests = require('./graphql-requests-4c97fe92.cjs.prod.js');
|
|
10
10
|
var _Date$now = require('@babel/runtime-corejs3/core-js-stable/date/now');
|
|
11
11
|
var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
12
12
|
var jwtDecode = require('jwt-decode');
|
|
@@ -31,7 +31,7 @@ require('graphql');
|
|
|
31
31
|
require('graphql-request');
|
|
32
32
|
require('@commercetools-frontend/constants');
|
|
33
33
|
require('@commercetools/http-user-agent');
|
|
34
|
-
require('./package-
|
|
34
|
+
require('./package-dfc9c56b.cjs.prod.js');
|
|
35
35
|
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
36
36
|
require('@babel/runtime-corejs3/helpers/createClass');
|
|
37
37
|
require('node:fs');
|
|
@@ -5,8 +5,8 @@ var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
|
|
|
5
5
|
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
6
6
|
var chalk = require('chalk');
|
|
7
7
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
8
|
-
var configSyncHelpers = require('./config-sync-helpers-
|
|
9
|
-
var graphqlRequests = require('./graphql-requests-
|
|
8
|
+
var configSyncHelpers = require('./config-sync-helpers-165afb6b.cjs.dev.js');
|
|
9
|
+
var graphqlRequests = require('./graphql-requests-86c87041.cjs.dev.js');
|
|
10
10
|
var _Date$now = require('@babel/runtime-corejs3/core-js-stable/date/now');
|
|
11
11
|
var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
12
12
|
var jwtDecode = require('jwt-decode');
|
|
@@ -31,7 +31,7 @@ require('graphql');
|
|
|
31
31
|
require('graphql-request');
|
|
32
32
|
require('@commercetools-frontend/constants');
|
|
33
33
|
require('@commercetools/http-user-agent');
|
|
34
|
-
require('./package-
|
|
34
|
+
require('./package-c8f39856.cjs.dev.js');
|
|
35
35
|
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
36
36
|
require('@babel/runtime-corejs3/helpers/createClass');
|
|
37
37
|
require('node:fs');
|
|
@@ -3,8 +3,8 @@ import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instanc
|
|
|
3
3
|
import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
4
4
|
import chalk from 'chalk';
|
|
5
5
|
import { processConfig } from '@commercetools-frontend/application-config';
|
|
6
|
-
import { i as isCustomViewData, c as checkCustomApplicationStatus, p as performCreateCustomApplication, a as performUpdateCustomApplication, b as checkCustomViewStatus, d as performCreateCustomView, e as performUpdateCustomView } from './config-sync-helpers-
|
|
7
|
-
import { f as fetchUserOrganizations } from './graphql-requests-
|
|
6
|
+
import { i as isCustomViewData, c as checkCustomApplicationStatus, p as performCreateCustomApplication, a as performUpdateCustomApplication, b as checkCustomViewStatus, d as performCreateCustomView, e as performUpdateCustomView } from './config-sync-helpers-2bf06642.esm.js';
|
|
7
|
+
import { f as fetchUserOrganizations } from './graphql-requests-53a1f5dd.esm.js';
|
|
8
8
|
import _Date$now from '@babel/runtime-corejs3/core-js-stable/date/now';
|
|
9
9
|
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
10
10
|
import jwtDecode from 'jwt-decode';
|
|
@@ -29,7 +29,7 @@ import 'graphql';
|
|
|
29
29
|
import 'graphql-request';
|
|
30
30
|
import '@commercetools-frontend/constants';
|
|
31
31
|
import '@commercetools/http-user-agent';
|
|
32
|
-
import './package-
|
|
32
|
+
import './package-02f0532d.esm.js';
|
|
33
33
|
import '@babel/runtime-corejs3/helpers/classCallCheck';
|
|
34
34
|
import '@babel/runtime-corejs3/helpers/createClass';
|
|
35
35
|
import 'node:fs';
|
|
@@ -7,9 +7,9 @@ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
|
|
|
7
7
|
var chalk = require('chalk');
|
|
8
8
|
var prompts = require('prompts');
|
|
9
9
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
10
|
-
var configSyncHelpers = require('./config-sync-helpers-
|
|
10
|
+
var configSyncHelpers = require('./config-sync-helpers-165afb6b.cjs.dev.js');
|
|
11
11
|
var credentialsStorage$1 = require('./credentials-storage-fd195144.cjs.dev.js');
|
|
12
|
-
var graphqlRequests = require('./graphql-requests-
|
|
12
|
+
var graphqlRequests = require('./graphql-requests-86c87041.cjs.dev.js');
|
|
13
13
|
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
14
14
|
require('lodash/omit');
|
|
15
15
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -36,7 +36,7 @@ require('graphql');
|
|
|
36
36
|
require('graphql-request');
|
|
37
37
|
require('@commercetools-frontend/constants');
|
|
38
38
|
require('@commercetools/http-user-agent');
|
|
39
|
-
require('./package-
|
|
39
|
+
require('./package-c8f39856.cjs.dev.js');
|
|
40
40
|
|
|
41
41
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
42
42
|
|
package/dist/{config-sync-helpers-2bbb7ef2.cjs.dev.js → config-sync-helpers-165afb6b.cjs.dev.js}
RENAMED
|
@@ -18,7 +18,7 @@ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
|
|
|
18
18
|
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
19
19
|
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
20
20
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
21
|
-
var graphqlRequests = require('./graphql-requests-
|
|
21
|
+
var graphqlRequests = require('./graphql-requests-86c87041.cjs.dev.js');
|
|
22
22
|
|
|
23
23
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
24
24
|
|
package/dist/{config-sync-helpers-afd3d75e.cjs.prod.js → config-sync-helpers-1dad1481.cjs.prod.js}
RENAMED
|
@@ -18,7 +18,7 @@ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
|
|
|
18
18
|
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
19
19
|
var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
20
20
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
21
|
-
var graphqlRequests = require('./graphql-requests-
|
|
21
|
+
var graphqlRequests = require('./graphql-requests-4c97fe92.cjs.prod.js');
|
|
22
22
|
|
|
23
23
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
24
24
|
|
|
@@ -16,7 +16,7 @@ import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/insta
|
|
|
16
16
|
import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
17
17
|
import _mapInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
18
18
|
import { sanitizeSvg } from '@commercetools-frontend/application-config';
|
|
19
|
-
import { c as createCustomApplication, u as updateCustomApplication, a as createCustomView, b as updateCustomView, d as fetchCustomApplication, e as fetchCustomView } from './graphql-requests-
|
|
19
|
+
import { c as createCustomApplication, u as updateCustomApplication, a as createCustomView, b as updateCustomView, d as fetchCustomApplication, e as fetchCustomView } from './graphql-requests-53a1f5dd.esm.js';
|
|
20
20
|
|
|
21
21
|
function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
22
22
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context9, _context0; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context9 = ownKeys(Object(t), !0)).call(_context9, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context0 = ownKeys(Object(t))).call(_context0, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
package/dist/{create-postcss-config-880af1a5.cjs.dev.js → create-postcss-config-1b021fb2.cjs.dev.js}
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
4
4
|
var path = require('path');
|
|
5
|
-
var _package = require('./package-
|
|
5
|
+
var _package = require('./package-c8f39856.cjs.dev.js');
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
4
4
|
var path = require('path');
|
|
5
|
-
var _package = require('./package-
|
|
5
|
+
var _package = require('./package-dfc9c56b.cjs.prod.js');
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
8
8
|
|
package/dist/{create-postcss-config-257247d7.esm.js → create-postcss-config-505c5a4e.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import { p as pkgJson } from './package-
|
|
3
|
+
import { p as pkgJson } from './package-02f0532d.esm.js';
|
|
4
4
|
|
|
5
5
|
// This function aims to return the same result as `require.resolve`.
|
|
6
6
|
// However, resolving a path to a `.css` file does not return the real
|
|
@@ -25,9 +25,8 @@ var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
|
25
25
|
var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
26
26
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
27
27
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
28
|
-
var createPostcssConfig = require('./create-postcss-config-
|
|
29
|
-
var
|
|
30
|
-
var optimizations = require('./optimizations-fb93514f.cjs.prod.js');
|
|
28
|
+
var createPostcssConfig = require('./create-postcss-config-434fe673.cjs.prod.js');
|
|
29
|
+
var optimizations = require('./optimizations-da5a0cfa.cjs.prod.js');
|
|
31
30
|
var paths = require('./paths-7768b440.cjs.prod.js');
|
|
32
31
|
var vendorsToTranspile = require('./vendors-to-transpile-04a49d40.cjs.prod.js');
|
|
33
32
|
|
|
@@ -255,7 +254,7 @@ function createWebpackConfigForDevelopment() {
|
|
|
255
254
|
options: {
|
|
256
255
|
babelrc: false,
|
|
257
256
|
presets: [[require.resolve('@commercetools-frontend/babel-preset-mc-app'), {
|
|
258
|
-
runtime:
|
|
257
|
+
runtime: optimizations.hasJsxRuntime() ? 'automatic' : 'classic',
|
|
259
258
|
disableCoreJs: mergedOptions.toggleFlags.disableCoreJs
|
|
260
259
|
}]],
|
|
261
260
|
// This is a feature of `babel-loader` for webpack (not Babel itself).
|
|
@@ -429,7 +428,7 @@ function createWebpackConfigForDevelopment() {
|
|
|
429
428
|
configFile: false,
|
|
430
429
|
compact: false,
|
|
431
430
|
presets: [[require.resolve('@commercetools-frontend/babel-preset-mc-app'), {
|
|
432
|
-
runtime:
|
|
431
|
+
runtime: optimizations.hasJsxRuntime() ? 'automatic' : 'classic'
|
|
433
432
|
}]],
|
|
434
433
|
plugins: _filterInstanceProperty__default["default"](_context4 = [hasReactRefresh && require.resolve('react-refresh/babel'),
|
|
435
434
|
// Add coverage instrumentation when running Cypress tests
|