@commercetools-frontend/mc-scripts 27.9.6 → 27.11.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 +8 -8
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +8 -8
- package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +8 -8
- package/dist/{build-3f0ab974.esm.js → build-1522915b.esm.js} +3 -3
- package/dist/{build-b2996bd2.cjs.dev.js → build-2dd050ba.cjs.dev.js} +3 -3
- package/dist/{build-73d1b30a.cjs.prod.js → build-ef81f31d.cjs.prod.js} +3 -3
- package/dist/{build-vite-377f721f.cjs.prod.js → build-vite-0b37a521.cjs.prod.js} +67 -1
- package/dist/{build-vite-2ea8a241.esm.js → build-vite-782c1634.esm.js} +64 -1
- package/dist/{build-vite-e4eeb1a3.cjs.dev.js → build-vite-dfe4ce01.cjs.dev.js} +67 -1
- 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-3a9f7388.esm.js → config-sync-0d1ce777.esm.js} +3 -3
- package/dist/{config-sync-405e8cad.cjs.prod.js → config-sync-81268c9a.cjs.prod.js} +3 -3
- package/dist/{config-sync-73e5f8cd.cjs.dev.js → config-sync-a52efbd5.cjs.dev.js} +3 -3
- package/dist/{config-sync-ci-e0575324.esm.js → config-sync-ci-0f7f0958.esm.js} +3 -3
- package/dist/{config-sync-ci-96ffeb0c.cjs.prod.js → config-sync-ci-84343069.cjs.prod.js} +3 -3
- package/dist/{config-sync-ci-3c003863.cjs.dev.js → config-sync-ci-aeea98f4.cjs.dev.js} +3 -3
- package/dist/{config-sync-helpers-2c4435e3.cjs.dev.js → config-sync-helpers-a13bd2bb.cjs.dev.js} +1 -1
- package/dist/{config-sync-helpers-a9017692.esm.js → config-sync-helpers-e0c532bb.esm.js} +1 -1
- package/dist/{config-sync-helpers-cbcb07de.cjs.prod.js → config-sync-helpers-e339e5ae.cjs.prod.js} +1 -1
- package/dist/{create-postcss-config-ae2052ca.cjs.dev.js → create-postcss-config-05f8684a.cjs.dev.js} +1 -1
- package/dist/{create-postcss-config-589ab552.esm.js → create-postcss-config-48fc3b65.esm.js} +1 -1
- package/dist/{create-postcss-config-72de84c3.cjs.prod.js → create-postcss-config-da05fccc.cjs.prod.js} +1 -1
- package/dist/{create-webpack-config-for-development-3a71dbd9.esm.js → create-webpack-config-for-development-46cdac02.esm.js} +1 -1
- package/dist/{create-webpack-config-for-development-0a45fb16.cjs.dev.js → create-webpack-config-for-development-8489f284.cjs.dev.js} +1 -1
- package/dist/{create-webpack-config-for-development-0c8493a7.cjs.prod.js → create-webpack-config-for-development-890d3a17.cjs.prod.js} +1 -1
- package/dist/{create-webpack-config-for-production-8ca3f79b.esm.js → create-webpack-config-for-production-c06c60cf.esm.js} +1 -1
- package/dist/{create-webpack-config-for-production-ce0a4730.cjs.prod.js → create-webpack-config-for-production-d1f3ab72.cjs.prod.js} +1 -1
- package/dist/{create-webpack-config-for-production-bfffea63.cjs.dev.js → create-webpack-config-for-production-eff9dea2.cjs.dev.js} +1 -1
- package/dist/{deployment-previews-set-77470ae4.cjs.prod.js → deployment-previews-set-146fdbb4.cjs.prod.js} +2 -2
- package/dist/{deployment-previews-set-7305914f.cjs.dev.js → deployment-previews-set-25e948be.cjs.dev.js} +2 -2
- package/dist/{deployment-previews-set-62483d21.esm.js → deployment-previews-set-2e04a65b.esm.js} +2 -2
- package/dist/{graphql-requests-29d4af29.cjs.dev.js → graphql-requests-0fecd380.cjs.dev.js} +1 -1
- package/dist/{graphql-requests-c0cd64c5.cjs.prod.js → graphql-requests-6d647e51.cjs.prod.js} +1 -1
- package/dist/{graphql-requests-5120d009.esm.js → graphql-requests-843a35ba.esm.js} +1 -1
- package/dist/{login-2adaca14.cjs.prod.js → login-42dae3e3.cjs.prod.js} +3 -2
- package/dist/{login-87541705.esm.js → login-4717dc02.esm.js} +3 -2
- package/dist/{login-0cbbf684.cjs.dev.js → login-4a16913d.cjs.dev.js} +3 -2
- package/dist/{package-27562b4c.cjs.prod.js → package-3123f9e5.cjs.dev.js} +1 -1
- package/dist/{package-ddfc2379.esm.js → package-7960c3be.esm.js} +1 -1
- package/dist/{package-2b40cba1.cjs.dev.js → package-c70d3561.cjs.prod.js} +1 -1
- package/dist/{serve-3837602d.cjs.prod.js → serve-42fccdc3.cjs.prod.js} +4 -3
- package/dist/{serve-b1c12985.cjs.dev.js → serve-dabd5104.cjs.dev.js} +4 -3
- package/dist/{serve-22475fec.esm.js → serve-f0f6cfe2.esm.js} +4 -3
- package/dist/{start-01222882.cjs.dev.js → start-18cf22a0.cjs.dev.js} +3 -3
- package/dist/{start-392a2c28.cjs.prod.js → start-4b13b81a.cjs.prod.js} +3 -3
- package/dist/{start-20aaf669.esm.js → start-eb2a4a31.esm.js} +3 -3
- package/package.json +8 -8
- 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 +4 -4
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +4 -4
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +4 -4
|
@@ -10,7 +10,7 @@ var path = require('path');
|
|
|
10
10
|
var commander = require('commander');
|
|
11
11
|
var dotenv = require('dotenv');
|
|
12
12
|
var dotenvExpand = require('dotenv-expand');
|
|
13
|
-
var _package = require('../../dist/package-
|
|
13
|
+
var _package = require('../../dist/package-3123f9e5.cjs.dev.js');
|
|
14
14
|
var doesFileExist = require('../../dist/does-file-exist-eb86baca.cjs.dev.js');
|
|
15
15
|
require('node:fs');
|
|
16
16
|
|
|
@@ -72,7 +72,7 @@ async function run() {
|
|
|
72
72
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
73
73
|
console.log('');
|
|
74
74
|
}
|
|
75
|
-
const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-698c9e82.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-
|
|
75
|
+
const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-698c9e82.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-18cf22a0.cjs.dev.js'); });
|
|
76
76
|
await startCommand.default();
|
|
77
77
|
});
|
|
78
78
|
|
|
@@ -91,7 +91,7 @@ async function run() {
|
|
|
91
91
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
92
92
|
console.log('');
|
|
93
93
|
}
|
|
94
|
-
const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-
|
|
94
|
+
const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-dfe4ce01.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-2dd050ba.cjs.dev.js'); });
|
|
95
95
|
await buildCommand.default();
|
|
96
96
|
const shouldAlsoCompile = !options.buildOnly;
|
|
97
97
|
if (shouldAlsoCompile) {
|
|
@@ -135,7 +135,7 @@ async function run() {
|
|
|
135
135
|
// files or `${env:...}` substitutions configured (the
|
|
136
136
|
// `application-authentication` use case).
|
|
137
137
|
const applicationConfig = handleAuthRoutes ? await (await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@commercetools-frontend/application-config')); })).processConfig() : undefined;
|
|
138
|
-
const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-
|
|
138
|
+
const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-dabd5104.cjs.dev.js'); });
|
|
139
139
|
const server = await serveCommand.default({
|
|
140
140
|
handleAuthRoutes,
|
|
141
141
|
applicationConfig
|
|
@@ -157,7 +157,7 @@ async function run() {
|
|
|
157
157
|
|
|
158
158
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
159
159
|
process.env.NODE_ENV = 'production';
|
|
160
|
-
const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-
|
|
160
|
+
const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-4a16913d.cjs.dev.js'); });
|
|
161
161
|
await loginCommand.default(options);
|
|
162
162
|
});
|
|
163
163
|
|
|
@@ -171,7 +171,7 @@ async function run() {
|
|
|
171
171
|
|
|
172
172
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
173
173
|
process.env.NODE_ENV = 'production';
|
|
174
|
-
const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-
|
|
174
|
+
const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-a52efbd5.cjs.dev.js'); });
|
|
175
175
|
await configSyncCommand.default(options);
|
|
176
176
|
});
|
|
177
177
|
|
|
@@ -184,7 +184,7 @@ async function run() {
|
|
|
184
184
|
|
|
185
185
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
186
186
|
process.env.NODE_ENV = 'production';
|
|
187
|
-
const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-
|
|
187
|
+
const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-aeea98f4.cjs.dev.js'); });
|
|
188
188
|
await configSyncCICommand.default(options);
|
|
189
189
|
});
|
|
190
190
|
|
|
@@ -198,7 +198,7 @@ async function run() {
|
|
|
198
198
|
|
|
199
199
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
200
200
|
process.env.NODE_ENV = 'production';
|
|
201
|
-
const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-
|
|
201
|
+
const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-25e948be.cjs.dev.js'); });
|
|
202
202
|
await deploymentsSetCommand.default(options);
|
|
203
203
|
});
|
|
204
204
|
commander.program.parse();
|
|
@@ -10,7 +10,7 @@ var path = require('path');
|
|
|
10
10
|
var commander = require('commander');
|
|
11
11
|
var dotenv = require('dotenv');
|
|
12
12
|
var dotenvExpand = require('dotenv-expand');
|
|
13
|
-
var _package = require('../../dist/package-
|
|
13
|
+
var _package = require('../../dist/package-c70d3561.cjs.prod.js');
|
|
14
14
|
var doesFileExist = require('../../dist/does-file-exist-be53305d.cjs.prod.js');
|
|
15
15
|
require('node:fs');
|
|
16
16
|
|
|
@@ -72,7 +72,7 @@ async function run() {
|
|
|
72
72
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
73
73
|
console.log('');
|
|
74
74
|
}
|
|
75
|
-
const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-dd8a1e26.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-
|
|
75
|
+
const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-dd8a1e26.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-4b13b81a.cjs.prod.js'); });
|
|
76
76
|
await startCommand.default();
|
|
77
77
|
});
|
|
78
78
|
|
|
@@ -91,7 +91,7 @@ async function run() {
|
|
|
91
91
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
92
92
|
console.log('');
|
|
93
93
|
}
|
|
94
|
-
const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-
|
|
94
|
+
const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-0b37a521.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-ef81f31d.cjs.prod.js'); });
|
|
95
95
|
await buildCommand.default();
|
|
96
96
|
const shouldAlsoCompile = !options.buildOnly;
|
|
97
97
|
if (shouldAlsoCompile) {
|
|
@@ -135,7 +135,7 @@ async function run() {
|
|
|
135
135
|
// files or `${env:...}` substitutions configured (the
|
|
136
136
|
// `application-authentication` use case).
|
|
137
137
|
const applicationConfig = handleAuthRoutes ? await (await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@commercetools-frontend/application-config')); })).processConfig() : undefined;
|
|
138
|
-
const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-
|
|
138
|
+
const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-42fccdc3.cjs.prod.js'); });
|
|
139
139
|
const server = await serveCommand.default({
|
|
140
140
|
handleAuthRoutes,
|
|
141
141
|
applicationConfig
|
|
@@ -157,7 +157,7 @@ async function run() {
|
|
|
157
157
|
|
|
158
158
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
159
159
|
process.env.NODE_ENV = 'production';
|
|
160
|
-
const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-
|
|
160
|
+
const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-42dae3e3.cjs.prod.js'); });
|
|
161
161
|
await loginCommand.default(options);
|
|
162
162
|
});
|
|
163
163
|
|
|
@@ -171,7 +171,7 @@ async function run() {
|
|
|
171
171
|
|
|
172
172
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
173
173
|
process.env.NODE_ENV = 'production';
|
|
174
|
-
const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-
|
|
174
|
+
const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-81268c9a.cjs.prod.js'); });
|
|
175
175
|
await configSyncCommand.default(options);
|
|
176
176
|
});
|
|
177
177
|
|
|
@@ -184,7 +184,7 @@ async function run() {
|
|
|
184
184
|
|
|
185
185
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
186
186
|
process.env.NODE_ENV = 'production';
|
|
187
|
-
const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-
|
|
187
|
+
const configSyncCICommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ci-84343069.cjs.prod.js'); });
|
|
188
188
|
await configSyncCICommand.default(options);
|
|
189
189
|
});
|
|
190
190
|
|
|
@@ -198,7 +198,7 @@ async function run() {
|
|
|
198
198
|
|
|
199
199
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
200
200
|
process.env.NODE_ENV = 'production';
|
|
201
|
-
const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-
|
|
201
|
+
const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-146fdbb4.cjs.prod.js'); });
|
|
202
202
|
await deploymentsSetCommand.default(options);
|
|
203
203
|
});
|
|
204
204
|
commander.program.parse();
|
|
@@ -6,7 +6,7 @@ import path from 'path';
|
|
|
6
6
|
import { program } from 'commander';
|
|
7
7
|
import dotenv from 'dotenv';
|
|
8
8
|
import dotenvExpand from 'dotenv-expand';
|
|
9
|
-
import { p as pkgJson } from '../../dist/package-
|
|
9
|
+
import { p as pkgJson } from '../../dist/package-7960c3be.esm.js';
|
|
10
10
|
import { d as doesFileExist } from '../../dist/does-file-exist-32618334.esm.js';
|
|
11
11
|
import 'node:fs';
|
|
12
12
|
|
|
@@ -40,7 +40,7 @@ async function run() {
|
|
|
40
40
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
41
41
|
console.log('');
|
|
42
42
|
}
|
|
43
|
-
const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-4b0df191.esm.js') : await import('../../dist/start-
|
|
43
|
+
const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-4b0df191.esm.js') : await import('../../dist/start-eb2a4a31.esm.js');
|
|
44
44
|
await startCommand.default();
|
|
45
45
|
});
|
|
46
46
|
|
|
@@ -59,7 +59,7 @@ async function run() {
|
|
|
59
59
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
60
60
|
console.log('');
|
|
61
61
|
}
|
|
62
|
-
const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-
|
|
62
|
+
const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-782c1634.esm.js') : await import('../../dist/build-1522915b.esm.js');
|
|
63
63
|
await buildCommand.default();
|
|
64
64
|
const shouldAlsoCompile = !options.buildOnly;
|
|
65
65
|
if (shouldAlsoCompile) {
|
|
@@ -103,7 +103,7 @@ async function run() {
|
|
|
103
103
|
// files or `${env:...}` substitutions configured (the
|
|
104
104
|
// `application-authentication` use case).
|
|
105
105
|
const applicationConfig = handleAuthRoutes ? await (await import('@commercetools-frontend/application-config')).processConfig() : undefined;
|
|
106
|
-
const serveCommand = await import('../../dist/serve-
|
|
106
|
+
const serveCommand = await import('../../dist/serve-f0f6cfe2.esm.js');
|
|
107
107
|
const server = await serveCommand.default({
|
|
108
108
|
handleAuthRoutes,
|
|
109
109
|
applicationConfig
|
|
@@ -125,7 +125,7 @@ async function run() {
|
|
|
125
125
|
|
|
126
126
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
127
127
|
process.env.NODE_ENV = 'production';
|
|
128
|
-
const loginCommand = await import('../../dist/login-
|
|
128
|
+
const loginCommand = await import('../../dist/login-4717dc02.esm.js');
|
|
129
129
|
await loginCommand.default(options);
|
|
130
130
|
});
|
|
131
131
|
|
|
@@ -139,7 +139,7 @@ async function run() {
|
|
|
139
139
|
|
|
140
140
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
141
141
|
process.env.NODE_ENV = 'production';
|
|
142
|
-
const configSyncCommand = await import('../../dist/config-sync-
|
|
142
|
+
const configSyncCommand = await import('../../dist/config-sync-0d1ce777.esm.js');
|
|
143
143
|
await configSyncCommand.default(options);
|
|
144
144
|
});
|
|
145
145
|
|
|
@@ -152,7 +152,7 @@ async function run() {
|
|
|
152
152
|
|
|
153
153
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
154
154
|
process.env.NODE_ENV = 'production';
|
|
155
|
-
const configSyncCICommand = await import('../../dist/config-sync-ci-
|
|
155
|
+
const configSyncCICommand = await import('../../dist/config-sync-ci-0f7f0958.esm.js');
|
|
156
156
|
await configSyncCICommand.default(options);
|
|
157
157
|
});
|
|
158
158
|
|
|
@@ -166,7 +166,7 @@ async function run() {
|
|
|
166
166
|
|
|
167
167
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
168
168
|
process.env.NODE_ENV = 'production';
|
|
169
|
-
const deploymentsSetCommand = await import('../../dist/deployment-previews-set-
|
|
169
|
+
const deploymentsSetCommand = await import('../../dist/deployment-previews-set-2e04a65b.esm.js');
|
|
170
170
|
await deploymentsSetCommand.default(options);
|
|
171
171
|
});
|
|
172
172
|
program.parse();
|
|
@@ -8,7 +8,7 @@ import formatWebpackMessages from 'react-dev-utils/formatWebpackMessages';
|
|
|
8
8
|
import printBuildError from 'react-dev-utils/printBuildError';
|
|
9
9
|
import webpack from 'webpack';
|
|
10
10
|
import { packageLocation } from '@commercetools-frontend/assets';
|
|
11
|
-
import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-
|
|
11
|
+
import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-c06c60cf.esm.js';
|
|
12
12
|
import { p as paths } from './paths-39f22b8b.esm.js';
|
|
13
13
|
import { d as doesFileExist } from './does-file-exist-32618334.esm.js';
|
|
14
14
|
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
@@ -39,9 +39,9 @@ import '@babel/runtime-corejs3/core-js-stable/instance/bind';
|
|
|
39
39
|
import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
|
40
40
|
import '@babel/runtime-corejs3/core-js-stable/object/assign';
|
|
41
41
|
import 'fs';
|
|
42
|
-
import './create-postcss-config-
|
|
42
|
+
import './create-postcss-config-48fc3b65.esm.js';
|
|
43
43
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
44
|
-
import './package-
|
|
44
|
+
import './package-7960c3be.esm.js';
|
|
45
45
|
import './optimizations-54382f7b.esm.js';
|
|
46
46
|
import '@babel/runtime-corejs3/core-js-stable/object/entries';
|
|
47
47
|
import '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
@@ -10,7 +10,7 @@ var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
|
|
|
10
10
|
var printBuildError = require('react-dev-utils/printBuildError');
|
|
11
11
|
var webpack = require('webpack');
|
|
12
12
|
var assets = require('@commercetools-frontend/assets');
|
|
13
|
-
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-
|
|
13
|
+
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-eff9dea2.cjs.dev.js');
|
|
14
14
|
var paths = require('./paths-b76fc753.cjs.dev.js');
|
|
15
15
|
var doesFileExist = require('./does-file-exist-eb86baca.cjs.dev.js');
|
|
16
16
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
@@ -41,9 +41,9 @@ require('@babel/runtime-corejs3/core-js-stable/instance/bind');
|
|
|
41
41
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
42
42
|
require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
43
43
|
require('fs');
|
|
44
|
-
require('./create-postcss-config-
|
|
44
|
+
require('./create-postcss-config-05f8684a.cjs.dev.js');
|
|
45
45
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
46
|
-
require('./package-
|
|
46
|
+
require('./package-3123f9e5.cjs.dev.js');
|
|
47
47
|
require('./optimizations-56be74d6.cjs.dev.js');
|
|
48
48
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
49
49
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
@@ -10,7 +10,7 @@ var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
|
|
|
10
10
|
var printBuildError = require('react-dev-utils/printBuildError');
|
|
11
11
|
var webpack = require('webpack');
|
|
12
12
|
var assets = require('@commercetools-frontend/assets');
|
|
13
|
-
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-
|
|
13
|
+
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-d1f3ab72.cjs.prod.js');
|
|
14
14
|
var paths = require('./paths-7768b440.cjs.prod.js');
|
|
15
15
|
var doesFileExist = require('./does-file-exist-be53305d.cjs.prod.js');
|
|
16
16
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
@@ -41,9 +41,9 @@ require('@babel/runtime-corejs3/core-js-stable/instance/bind');
|
|
|
41
41
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
42
42
|
require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
43
43
|
require('fs');
|
|
44
|
-
require('./create-postcss-config-
|
|
44
|
+
require('./create-postcss-config-da05fccc.cjs.prod.js');
|
|
45
45
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
46
|
-
require('./package-
|
|
46
|
+
require('./package-c70d3561.cjs.prod.js');
|
|
47
47
|
require('./optimizations-da5a0cfa.cjs.prod.js');
|
|
48
48
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
49
49
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
@@ -26,6 +26,9 @@ var _sortInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
|
|
|
26
26
|
var cliLib = require('@formatjs/cli-lib');
|
|
27
27
|
var pluginutils = require('@rollup/pluginutils');
|
|
28
28
|
var i18nMessageComplilation = require('./i18n-message-complilation-7762da61.cjs.prod.js');
|
|
29
|
+
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
30
|
+
var _endsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
|
|
31
|
+
var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
29
32
|
var fs = require('node:fs');
|
|
30
33
|
var path = require('node:path');
|
|
31
34
|
var glob = require('glob');
|
|
@@ -57,6 +60,9 @@ var _indexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_indexOfIns
|
|
|
57
60
|
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
|
|
58
61
|
var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
|
|
59
62
|
var _sortInstanceProperty__default = /*#__PURE__*/_interopDefault(_sortInstanceProperty);
|
|
63
|
+
var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
|
|
64
|
+
var _endsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_endsWithInstanceProperty);
|
|
65
|
+
var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
|
|
60
66
|
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
61
67
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
62
68
|
|
|
@@ -202,6 +208,56 @@ function vitePluginI18nMessageCompilation() {
|
|
|
202
208
|
};
|
|
203
209
|
}
|
|
204
210
|
|
|
211
|
+
/**
|
|
212
|
+
* Only a candidate filter: which links are actually rewritten is decided by
|
|
213
|
+
* matching `href` against the CSS assets Vite really emitted (see
|
|
214
|
+
* `transformIndexHtml`). That check matters, because the built HTML also
|
|
215
|
+
* carries stylesheet links this plugin must never touch -- the Inter/Nimbus
|
|
216
|
+
* font link and the `<noscript>` Open Sans fallback -- which would otherwise
|
|
217
|
+
* gain `data-mc-css` and start gating app reveal on a third-party request.
|
|
218
|
+
*/
|
|
219
|
+
const STYLESHEET_LINK_RE = /<link\b[^>]*\brel="stylesheet"[^>]*>/g;
|
|
220
|
+
const REL_STYLESHEET_RE = /\brel="stylesheet"/;
|
|
221
|
+
const HREF_RE = /\bhref="([^"]*)"/;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Rewrites Vite's render-blocking stylesheet links into preloads marked
|
|
225
|
+
* `data-mc-css`. `loading-screen.js` upgrades them back once loaded and gates
|
|
226
|
+
* `window.onAppLoaded()` on them so the app is never revealed unstyled.
|
|
227
|
+
*/
|
|
228
|
+
function pluginNonBlockingCss() {
|
|
229
|
+
return {
|
|
230
|
+
name: 'vite-plugin-non-blocking-css',
|
|
231
|
+
apply: 'build',
|
|
232
|
+
// No `enforce`: this must run after Vite's own `vite:build-html`, which
|
|
233
|
+
// injects the stylesheet tags during `generateBundle` and only then applies
|
|
234
|
+
// the normal- and post-order `transformIndexHtml` hooks.
|
|
235
|
+
transformIndexHtml(html, ctx) {
|
|
236
|
+
var _context;
|
|
237
|
+
// `ctx.bundle` is only set for the build, not the dev server.
|
|
238
|
+
if (!ctx.bundle) {
|
|
239
|
+
return html;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// Only rewrite links pointing at CSS this build actually emitted. Anything
|
|
243
|
+
// else in the template -- fonts, the noscript fallback, icons -- is left
|
|
244
|
+
// exactly as authored.
|
|
245
|
+
const emittedCssFileNames = _filterInstanceProperty__default["default"](_context = _Object$keys__default["default"](ctx.bundle)).call(_context, fileName => _endsWithInstanceProperty__default["default"](fileName).call(fileName, '.css'));
|
|
246
|
+
if (emittedCssFileNames.length === 0) {
|
|
247
|
+
return html;
|
|
248
|
+
}
|
|
249
|
+
return html.replace(STYLESHEET_LINK_RE, tag => {
|
|
250
|
+
const href = HREF_RE.exec(tag)?.[1];
|
|
251
|
+
|
|
252
|
+
// `endsWith` rather than equality: hrefs may carry the `__CDN_URL__`
|
|
253
|
+
// placeholder prefix from `experimental.renderBuiltUrl`.
|
|
254
|
+
const isEmittedCss = href ? _someInstanceProperty__default["default"](emittedCssFileNames).call(emittedCssFileNames, fileName => _endsWithInstanceProperty__default["default"](href).call(href, fileName)) : false;
|
|
255
|
+
return isEmittedCss ? tag.replace(REL_STYLESHEET_RE, 'rel="preload" as="style" data-mc-css') : tag;
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
|
|
205
261
|
/**
|
|
206
262
|
* A simple Vite plugin to clean up files matching glob patterns after build.
|
|
207
263
|
* Replaces `vite-plugin-post-cleanup` to avoid the `inflight` vulnerability
|
|
@@ -243,6 +299,8 @@ function pluginPostCleanup(options) {
|
|
|
243
299
|
async function run() {
|
|
244
300
|
var _context;
|
|
245
301
|
const DEFAULT_PORT = _parseInt__default["default"](String(process.env.HTTP_PORT), 10) || 3001;
|
|
302
|
+
const analyzeOutput = process.env.ANALYZE_BUNDLE_OUTPUT;
|
|
303
|
+
const shouldAnalyze = process.env.ANALYZE_BUNDLE === 'true' || Boolean(analyzeOutput);
|
|
246
304
|
|
|
247
305
|
// Ensure the `/public` folder exists.
|
|
248
306
|
fs__default$1["default"].mkdirSync(paths.paths.appBuild, {
|
|
@@ -342,10 +400,18 @@ async function run() {
|
|
|
342
400
|
patterns: ['*.react-*.svg'],
|
|
343
401
|
verbose: true // logs the files that are removed
|
|
344
402
|
}), vitePluginDynamicBaseAssetsGlobals(), vitePluginI18nMessageCompilation(),
|
|
403
|
+
// Rewrite Vite's render-blocking stylesheet links into preloads that
|
|
404
|
+
// `loading-screen.js` upgrades once loaded, so app CSS no longer blocks
|
|
405
|
+
// first paint. Must stay after Vite's own `vite:build-html`.
|
|
406
|
+
pluginNonBlockingCss(),
|
|
345
407
|
// Fail the build if the emitted chunk graph contains circular imports.
|
|
346
408
|
// Chunk cycles are silent at build time but crash at runtime with TDZ
|
|
347
409
|
// errors (historical "aM is undefined" from the icons/app-shell split).
|
|
348
|
-
pluginChunkCycleCheck(),
|
|
410
|
+
pluginChunkCycleCheck(), shouldAnalyze && viteBundleAnalyzer.analyzer(analyzeOutput ? {
|
|
411
|
+
analyzerMode: 'json',
|
|
412
|
+
defaultSizes: 'stat',
|
|
413
|
+
fileName: analyzeOutput
|
|
414
|
+
} : {
|
|
349
415
|
defaultSizes: 'stat',
|
|
350
416
|
openAnalyzer: true
|
|
351
417
|
}), process.env.ANALYZE_BUNDLE_TREE === 'true' && rollupPluginVisualizer.visualizer({
|
|
@@ -24,6 +24,9 @@ import _sortInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instanc
|
|
|
24
24
|
import { compile } from '@formatjs/cli-lib';
|
|
25
25
|
import { createFilter } from '@rollup/pluginutils';
|
|
26
26
|
import { g as getI18nMessageFormat, h as handleMessageCompilationError } from './i18n-message-complilation-21d3b0aa.esm.js';
|
|
27
|
+
import _Object$keys from '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
28
|
+
import _endsWithInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/ends-with';
|
|
29
|
+
import _someInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/some';
|
|
27
30
|
import fs from 'node:fs';
|
|
28
31
|
import path from 'node:path';
|
|
29
32
|
import { globSync } from 'glob';
|
|
@@ -179,6 +182,56 @@ function vitePluginI18nMessageCompilation() {
|
|
|
179
182
|
};
|
|
180
183
|
}
|
|
181
184
|
|
|
185
|
+
/**
|
|
186
|
+
* Only a candidate filter: which links are actually rewritten is decided by
|
|
187
|
+
* matching `href` against the CSS assets Vite really emitted (see
|
|
188
|
+
* `transformIndexHtml`). That check matters, because the built HTML also
|
|
189
|
+
* carries stylesheet links this plugin must never touch -- the Inter/Nimbus
|
|
190
|
+
* font link and the `<noscript>` Open Sans fallback -- which would otherwise
|
|
191
|
+
* gain `data-mc-css` and start gating app reveal on a third-party request.
|
|
192
|
+
*/
|
|
193
|
+
const STYLESHEET_LINK_RE = /<link\b[^>]*\brel="stylesheet"[^>]*>/g;
|
|
194
|
+
const REL_STYLESHEET_RE = /\brel="stylesheet"/;
|
|
195
|
+
const HREF_RE = /\bhref="([^"]*)"/;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Rewrites Vite's render-blocking stylesheet links into preloads marked
|
|
199
|
+
* `data-mc-css`. `loading-screen.js` upgrades them back once loaded and gates
|
|
200
|
+
* `window.onAppLoaded()` on them so the app is never revealed unstyled.
|
|
201
|
+
*/
|
|
202
|
+
function pluginNonBlockingCss() {
|
|
203
|
+
return {
|
|
204
|
+
name: 'vite-plugin-non-blocking-css',
|
|
205
|
+
apply: 'build',
|
|
206
|
+
// No `enforce`: this must run after Vite's own `vite:build-html`, which
|
|
207
|
+
// injects the stylesheet tags during `generateBundle` and only then applies
|
|
208
|
+
// the normal- and post-order `transformIndexHtml` hooks.
|
|
209
|
+
transformIndexHtml(html, ctx) {
|
|
210
|
+
var _context;
|
|
211
|
+
// `ctx.bundle` is only set for the build, not the dev server.
|
|
212
|
+
if (!ctx.bundle) {
|
|
213
|
+
return html;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// Only rewrite links pointing at CSS this build actually emitted. Anything
|
|
217
|
+
// else in the template -- fonts, the noscript fallback, icons -- is left
|
|
218
|
+
// exactly as authored.
|
|
219
|
+
const emittedCssFileNames = _filterInstanceProperty(_context = _Object$keys(ctx.bundle)).call(_context, fileName => _endsWithInstanceProperty(fileName).call(fileName, '.css'));
|
|
220
|
+
if (emittedCssFileNames.length === 0) {
|
|
221
|
+
return html;
|
|
222
|
+
}
|
|
223
|
+
return html.replace(STYLESHEET_LINK_RE, tag => {
|
|
224
|
+
const href = HREF_RE.exec(tag)?.[1];
|
|
225
|
+
|
|
226
|
+
// `endsWith` rather than equality: hrefs may carry the `__CDN_URL__`
|
|
227
|
+
// placeholder prefix from `experimental.renderBuiltUrl`.
|
|
228
|
+
const isEmittedCss = href ? _someInstanceProperty(emittedCssFileNames).call(emittedCssFileNames, fileName => _endsWithInstanceProperty(href).call(href, fileName)) : false;
|
|
229
|
+
return isEmittedCss ? tag.replace(REL_STYLESHEET_RE, 'rel="preload" as="style" data-mc-css') : tag;
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
|
|
182
235
|
/**
|
|
183
236
|
* A simple Vite plugin to clean up files matching glob patterns after build.
|
|
184
237
|
* Replaces `vite-plugin-post-cleanup` to avoid the `inflight` vulnerability
|
|
@@ -220,6 +273,8 @@ function pluginPostCleanup(options) {
|
|
|
220
273
|
async function run() {
|
|
221
274
|
var _context;
|
|
222
275
|
const DEFAULT_PORT = _parseInt(String(process.env.HTTP_PORT), 10) || 3001;
|
|
276
|
+
const analyzeOutput = process.env.ANALYZE_BUNDLE_OUTPUT;
|
|
277
|
+
const shouldAnalyze = process.env.ANALYZE_BUNDLE === 'true' || Boolean(analyzeOutput);
|
|
223
278
|
|
|
224
279
|
// Ensure the `/public` folder exists.
|
|
225
280
|
fs$1.mkdirSync(paths.appBuild, {
|
|
@@ -319,10 +374,18 @@ async function run() {
|
|
|
319
374
|
patterns: ['*.react-*.svg'],
|
|
320
375
|
verbose: true // logs the files that are removed
|
|
321
376
|
}), vitePluginDynamicBaseAssetsGlobals(), vitePluginI18nMessageCompilation(),
|
|
377
|
+
// Rewrite Vite's render-blocking stylesheet links into preloads that
|
|
378
|
+
// `loading-screen.js` upgrades once loaded, so app CSS no longer blocks
|
|
379
|
+
// first paint. Must stay after Vite's own `vite:build-html`.
|
|
380
|
+
pluginNonBlockingCss(),
|
|
322
381
|
// Fail the build if the emitted chunk graph contains circular imports.
|
|
323
382
|
// Chunk cycles are silent at build time but crash at runtime with TDZ
|
|
324
383
|
// errors (historical "aM is undefined" from the icons/app-shell split).
|
|
325
|
-
pluginChunkCycleCheck(),
|
|
384
|
+
pluginChunkCycleCheck(), shouldAnalyze && analyzer(analyzeOutput ? {
|
|
385
|
+
analyzerMode: 'json',
|
|
386
|
+
defaultSizes: 'stat',
|
|
387
|
+
fileName: analyzeOutput
|
|
388
|
+
} : {
|
|
326
389
|
defaultSizes: 'stat',
|
|
327
390
|
openAnalyzer: true
|
|
328
391
|
}), process.env.ANALYZE_BUNDLE_TREE === 'true' && visualizer({
|
|
@@ -26,6 +26,9 @@ var _sortInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/insta
|
|
|
26
26
|
var cliLib = require('@formatjs/cli-lib');
|
|
27
27
|
var pluginutils = require('@rollup/pluginutils');
|
|
28
28
|
var i18nMessageComplilation = require('./i18n-message-complilation-7311cb29.cjs.dev.js');
|
|
29
|
+
var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
30
|
+
var _endsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
|
|
31
|
+
var _someInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/some');
|
|
29
32
|
var fs = require('node:fs');
|
|
30
33
|
var path = require('node:path');
|
|
31
34
|
var glob = require('glob');
|
|
@@ -57,6 +60,9 @@ var _indexOfInstanceProperty__default = /*#__PURE__*/_interopDefault(_indexOfIns
|
|
|
57
60
|
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
|
|
58
61
|
var _sliceInstanceProperty__default = /*#__PURE__*/_interopDefault(_sliceInstanceProperty);
|
|
59
62
|
var _sortInstanceProperty__default = /*#__PURE__*/_interopDefault(_sortInstanceProperty);
|
|
63
|
+
var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
|
|
64
|
+
var _endsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_endsWithInstanceProperty);
|
|
65
|
+
var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
|
|
60
66
|
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
61
67
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
62
68
|
|
|
@@ -202,6 +208,56 @@ function vitePluginI18nMessageCompilation() {
|
|
|
202
208
|
};
|
|
203
209
|
}
|
|
204
210
|
|
|
211
|
+
/**
|
|
212
|
+
* Only a candidate filter: which links are actually rewritten is decided by
|
|
213
|
+
* matching `href` against the CSS assets Vite really emitted (see
|
|
214
|
+
* `transformIndexHtml`). That check matters, because the built HTML also
|
|
215
|
+
* carries stylesheet links this plugin must never touch -- the Inter/Nimbus
|
|
216
|
+
* font link and the `<noscript>` Open Sans fallback -- which would otherwise
|
|
217
|
+
* gain `data-mc-css` and start gating app reveal on a third-party request.
|
|
218
|
+
*/
|
|
219
|
+
const STYLESHEET_LINK_RE = /<link\b[^>]*\brel="stylesheet"[^>]*>/g;
|
|
220
|
+
const REL_STYLESHEET_RE = /\brel="stylesheet"/;
|
|
221
|
+
const HREF_RE = /\bhref="([^"]*)"/;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Rewrites Vite's render-blocking stylesheet links into preloads marked
|
|
225
|
+
* `data-mc-css`. `loading-screen.js` upgrades them back once loaded and gates
|
|
226
|
+
* `window.onAppLoaded()` on them so the app is never revealed unstyled.
|
|
227
|
+
*/
|
|
228
|
+
function pluginNonBlockingCss() {
|
|
229
|
+
return {
|
|
230
|
+
name: 'vite-plugin-non-blocking-css',
|
|
231
|
+
apply: 'build',
|
|
232
|
+
// No `enforce`: this must run after Vite's own `vite:build-html`, which
|
|
233
|
+
// injects the stylesheet tags during `generateBundle` and only then applies
|
|
234
|
+
// the normal- and post-order `transformIndexHtml` hooks.
|
|
235
|
+
transformIndexHtml(html, ctx) {
|
|
236
|
+
var _context;
|
|
237
|
+
// `ctx.bundle` is only set for the build, not the dev server.
|
|
238
|
+
if (!ctx.bundle) {
|
|
239
|
+
return html;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// Only rewrite links pointing at CSS this build actually emitted. Anything
|
|
243
|
+
// else in the template -- fonts, the noscript fallback, icons -- is left
|
|
244
|
+
// exactly as authored.
|
|
245
|
+
const emittedCssFileNames = _filterInstanceProperty__default["default"](_context = _Object$keys__default["default"](ctx.bundle)).call(_context, fileName => _endsWithInstanceProperty__default["default"](fileName).call(fileName, '.css'));
|
|
246
|
+
if (emittedCssFileNames.length === 0) {
|
|
247
|
+
return html;
|
|
248
|
+
}
|
|
249
|
+
return html.replace(STYLESHEET_LINK_RE, tag => {
|
|
250
|
+
const href = HREF_RE.exec(tag)?.[1];
|
|
251
|
+
|
|
252
|
+
// `endsWith` rather than equality: hrefs may carry the `__CDN_URL__`
|
|
253
|
+
// placeholder prefix from `experimental.renderBuiltUrl`.
|
|
254
|
+
const isEmittedCss = href ? _someInstanceProperty__default["default"](emittedCssFileNames).call(emittedCssFileNames, fileName => _endsWithInstanceProperty__default["default"](href).call(href, fileName)) : false;
|
|
255
|
+
return isEmittedCss ? tag.replace(REL_STYLESHEET_RE, 'rel="preload" as="style" data-mc-css') : tag;
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
|
|
205
261
|
/**
|
|
206
262
|
* A simple Vite plugin to clean up files matching glob patterns after build.
|
|
207
263
|
* Replaces `vite-plugin-post-cleanup` to avoid the `inflight` vulnerability
|
|
@@ -243,6 +299,8 @@ function pluginPostCleanup(options) {
|
|
|
243
299
|
async function run() {
|
|
244
300
|
var _context;
|
|
245
301
|
const DEFAULT_PORT = _parseInt__default["default"](String(process.env.HTTP_PORT), 10) || 3001;
|
|
302
|
+
const analyzeOutput = process.env.ANALYZE_BUNDLE_OUTPUT;
|
|
303
|
+
const shouldAnalyze = process.env.ANALYZE_BUNDLE === 'true' || Boolean(analyzeOutput);
|
|
246
304
|
|
|
247
305
|
// Ensure the `/public` folder exists.
|
|
248
306
|
fs__default$1["default"].mkdirSync(paths.paths.appBuild, {
|
|
@@ -342,10 +400,18 @@ async function run() {
|
|
|
342
400
|
patterns: ['*.react-*.svg'],
|
|
343
401
|
verbose: true // logs the files that are removed
|
|
344
402
|
}), vitePluginDynamicBaseAssetsGlobals(), vitePluginI18nMessageCompilation(),
|
|
403
|
+
// Rewrite Vite's render-blocking stylesheet links into preloads that
|
|
404
|
+
// `loading-screen.js` upgrades once loaded, so app CSS no longer blocks
|
|
405
|
+
// first paint. Must stay after Vite's own `vite:build-html`.
|
|
406
|
+
pluginNonBlockingCss(),
|
|
345
407
|
// Fail the build if the emitted chunk graph contains circular imports.
|
|
346
408
|
// Chunk cycles are silent at build time but crash at runtime with TDZ
|
|
347
409
|
// errors (historical "aM is undefined" from the icons/app-shell split).
|
|
348
|
-
pluginChunkCycleCheck(),
|
|
410
|
+
pluginChunkCycleCheck(), shouldAnalyze && viteBundleAnalyzer.analyzer(analyzeOutput ? {
|
|
411
|
+
analyzerMode: 'json',
|
|
412
|
+
defaultSizes: 'stat',
|
|
413
|
+
fileName: analyzeOutput
|
|
414
|
+
} : {
|
|
349
415
|
defaultSizes: 'stat',
|
|
350
416
|
openAnalyzer: true
|
|
351
417
|
}), 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.11.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.11.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-e0c532bb.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-843a35ba.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-7960c3be.esm.js';
|
|
38
38
|
|
|
39
39
|
const credentialsStorage = new CredentialsStorage();
|
|
40
40
|
async function promptForOrganization(_ref) {
|