@commercetools-frontend/mc-scripts 24.11.0 → 24.12.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.
Files changed (76) hide show
  1. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.dev.js +1 -1
  2. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.prod.js +1 -1
  3. package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.esm.js +1 -1
  4. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +13 -14
  5. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +13 -14
  6. package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +13 -14
  7. package/dist/{build-4a46d4f2.esm.js → build-1c7d82ef.esm.js} +7 -7
  8. package/dist/{build-566e6a6f.cjs.dev.js → build-895fb1d2.cjs.dev.js} +7 -7
  9. package/dist/{build-659191e5.cjs.prod.js → build-be24f6d9.cjs.prod.js} +7 -7
  10. package/dist/{build-vite-5d317720.cjs.prod.js → build-vite-4a6c90c2.cjs.prod.js} +9 -8
  11. package/dist/{build-vite-59e1f185.esm.js → build-vite-85211835.esm.js} +9 -8
  12. package/dist/{build-vite-16b1a575.cjs.dev.js → build-vite-e26f6c9f.cjs.dev.js} +9 -8
  13. package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
  14. package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
  15. package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
  16. package/dist/{compile-html-f4ac88cc.cjs.dev.js → compile-html-8679f721.cjs.dev.js} +5 -2
  17. package/dist/{compile-html-025cd493.esm.js → compile-html-adfef598.esm.js} +4 -2
  18. package/dist/{compile-html-50fd05ec.cjs.prod.js → compile-html-b80f9651.cjs.prod.js} +5 -2
  19. package/dist/{config-sync-f6fbc36d.esm.js → config-sync-78ccf97c.esm.js} +79 -69
  20. package/dist/{config-sync-d75c4c90.cjs.prod.js → config-sync-e32e3fa6.cjs.prod.js} +78 -67
  21. package/dist/{config-sync-5c9abc61.cjs.dev.js → config-sync-ffddb604.cjs.dev.js} +80 -69
  22. package/dist/{create-postcss-config-fb85a144.cjs.prod.js → create-postcss-config-2d574316.cjs.prod.js} +1 -1
  23. package/dist/{create-postcss-config-d0e65de0.esm.js → create-postcss-config-3887c44a.esm.js} +1 -1
  24. package/dist/{create-postcss-config-64f2da19.cjs.dev.js → create-postcss-config-a47547b4.cjs.dev.js} +1 -1
  25. package/dist/{create-webpack-config-for-development-a5f08567.cjs.prod.js → create-webpack-config-for-development-03c59e8e.cjs.prod.js} +9 -7
  26. package/dist/{create-webpack-config-for-development-a77e14bc.esm.js → create-webpack-config-for-development-2c20b570.esm.js} +9 -7
  27. package/dist/{create-webpack-config-for-development-e5725c8d.cjs.dev.js → create-webpack-config-for-development-99b8871e.cjs.dev.js} +9 -7
  28. package/dist/{create-webpack-config-for-production-c0536780.cjs.dev.js → create-webpack-config-for-production-28456828.cjs.dev.js} +7 -7
  29. package/dist/{create-webpack-config-for-production-f92681a6.cjs.prod.js → create-webpack-config-for-production-59e18392.cjs.prod.js} +7 -7
  30. package/dist/{create-webpack-config-for-production-7a6d390e.esm.js → create-webpack-config-for-production-94bc1e6d.esm.js} +7 -7
  31. package/dist/{credentials-storage-0b89aa0e.cjs.prod.js → credentials-storage-381abf27.cjs.prod.js} +1 -1
  32. package/dist/{credentials-storage-4464313c.esm.js → credentials-storage-7285d7b4.esm.js} +1 -1
  33. package/dist/{credentials-storage-cbb5c559.cjs.dev.js → credentials-storage-de220814.cjs.dev.js} +1 -1
  34. package/dist/{deployment-previews-set-da359e5f.cjs.prod.js → deployment-previews-set-117c5626.cjs.prod.js} +28 -22
  35. package/dist/{deployment-previews-set-5ea606f0.cjs.dev.js → deployment-previews-set-1e263b53.cjs.dev.js} +28 -22
  36. package/dist/{deployment-previews-set-f346c6db.esm.js → deployment-previews-set-a243363b.esm.js} +27 -22
  37. package/dist/{graphql-requests-0fadb1e6.esm.js → graphql-requests-54b9815d.esm.js} +8 -5
  38. package/dist/{graphql-requests-96bc67f5.cjs.dev.js → graphql-requests-b4c8c047.cjs.dev.js} +8 -5
  39. package/dist/{graphql-requests-0bfaefaf.cjs.prod.js → graphql-requests-b89caeb1.cjs.prod.js} +8 -5
  40. package/dist/{i18n-message-complilation-7311cb29.cjs.dev.js → i18n-message-complilation-393d344a.cjs.prod.js} +1 -1
  41. package/dist/{i18n-message-complilation-7762da61.cjs.prod.js → i18n-message-complilation-3f80e8d6.cjs.dev.js} +1 -1
  42. package/dist/{i18n-message-complilation-21d3b0aa.esm.js → i18n-message-complilation-8aec9d1b.esm.js} +1 -1
  43. package/dist/{login-e18068ff.esm.js → login-0223db92.esm.js} +32 -23
  44. package/dist/{login-ae425412.cjs.dev.js → login-935abd52.cjs.dev.js} +35 -23
  45. package/dist/{login-cc1d6e23.cjs.prod.js → login-bf7607cf.cjs.prod.js} +35 -23
  46. package/dist/{optimizations-7789145e.cjs.dev.js → optimizations-ea21b802.cjs.prod.js} +8 -5
  47. package/dist/{optimizations-bf991634.esm.js → optimizations-ea71a24a.esm.js} +7 -5
  48. package/dist/{optimizations-fb93514f.cjs.prod.js → optimizations-ebbeaf88.cjs.dev.js} +8 -5
  49. package/dist/{package-9710aafc.esm.js → package-31f38f64.esm.js} +10 -10
  50. package/dist/{package-3874f63c.cjs.prod.js → package-ad6a5026.cjs.prod.js} +10 -10
  51. package/dist/{package-9101f68f.cjs.dev.js → package-dc76e3fe.cjs.dev.js} +10 -10
  52. package/dist/{paths-39f22b8b.esm.js → paths-7bf7e88e.esm.js} +9 -4
  53. package/dist/{paths-7768b440.cjs.prod.js → paths-af1a725a.cjs.prod.js} +10 -4
  54. package/dist/{paths-b76fc753.cjs.dev.js → paths-ec3e3a7d.cjs.dev.js} +10 -4
  55. package/dist/{serve-50d33f0b.cjs.dev.js → serve-04a03d5f.cjs.dev.js} +6 -4
  56. package/dist/{serve-8a506da6.cjs.prod.js → serve-2a863026.cjs.prod.js} +6 -4
  57. package/dist/{serve-1036c2de.esm.js → serve-fb1a0f5a.esm.js} +6 -4
  58. package/dist/{start-25f6f1cf.cjs.prod.js → start-3a301547.cjs.prod.js} +9 -8
  59. package/dist/{start-01621f67.esm.js → start-57d1d14c.esm.js} +9 -8
  60. package/dist/{start-3a463b77.cjs.dev.js → start-7e607d2a.cjs.dev.js} +9 -8
  61. package/dist/{start-vite-29078b3a.cjs.prod.js → start-vite-d548c121.cjs.prod.js} +4 -3
  62. package/dist/{start-vite-7d1161e8.esm.js → start-vite-d649d1f3.esm.js} +4 -3
  63. package/dist/{start-vite-068e9f73.cjs.dev.js → start-vite-eea72ba9.cjs.dev.js} +4 -3
  64. package/dist/{vite-plugin-svgr-de6ee7da.esm.js → vite-plugin-svgr-22c8d518.esm.js} +4 -4
  65. package/dist/{vite-plugin-svgr-4034a834.cjs.prod.js → vite-plugin-svgr-53ef97c7.cjs.dev.js} +4 -4
  66. package/dist/{vite-plugin-svgr-7d06f400.cjs.dev.js → vite-plugin-svgr-5de1cad9.cjs.prod.js} +4 -4
  67. package/package.json +10 -10
  68. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
  69. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
  70. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
  71. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +6 -6
  72. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +6 -6
  73. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +6 -6
  74. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.dev.js +1 -1
  75. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.prod.js +1 -1
  76. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.esm.js +1 -1
@@ -4,4 +4,4 @@
4
4
  // Dynamically inject webpack `publicPath`, for resolving assets locations.
5
5
  // https://webpack.js.org/guides/public-path/#on-the-fly
6
6
  // https://webpack.js.org/configuration/output/#output-publicpath
7
- if (process.env.NODE_ENV !== 'test') __webpack_public_path__ = `${window.app.cdnUrl.replace(/\/$/, '')}/`;
7
+ if (process.env.NODE_ENV !== 'test') __webpack_public_path__ = "".concat(window.app.cdnUrl.replace(/\/$/, ''), "/");
@@ -4,4 +4,4 @@
4
4
  // Dynamically inject webpack `publicPath`, for resolving assets locations.
5
5
  // https://webpack.js.org/guides/public-path/#on-the-fly
6
6
  // https://webpack.js.org/configuration/output/#output-publicpath
7
- __webpack_public_path__ = `${window.app.cdnUrl.replace(/\/$/, '')}/`;
7
+ __webpack_public_path__ = "".concat(window.app.cdnUrl.replace(/\/$/, ''), "/");
@@ -2,4 +2,4 @@
2
2
  // Dynamically inject webpack `publicPath`, for resolving assets locations.
3
3
  // https://webpack.js.org/guides/public-path/#on-the-fly
4
4
  // https://webpack.js.org/configuration/output/#output-publicpath
5
- if (process.env.NODE_ENV !== 'test') __webpack_public_path__ = `${window.app.cdnUrl.replace(/\/$/, '')}/`;
5
+ if (process.env.NODE_ENV !== 'test') __webpack_public_path__ = "".concat(window.app.cdnUrl.replace(/\/$/, ''), "/");
@@ -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-9101f68f.cjs.dev.js');
13
+ var _package = require('../../dist/package-dc76e3fe.cjs.dev.js');
14
14
  var doesFileExist = require('../../dist/does-file-exist-eb86baca.cjs.dev.js');
15
15
  require('node:fs');
16
16
 
@@ -24,9 +24,8 @@ var path__default = /*#__PURE__*/_interopDefault(path);
24
24
  var dotenv__default = /*#__PURE__*/_interopDefault(dotenv);
25
25
  var dotenvExpand__default = /*#__PURE__*/_interopDefault(dotenvExpand);
26
26
 
27
- commander.program.name('mc-scripts').description('CLI to develop and build Merchant Center customizations.').version(_package.pkgJson.version).option('-e, --env <path...>',
28
- // Variadic option. It allows multiple `--env` options to be provided.
29
- `(optional) Parses the file path as a dotenv file and adds the variables to the environment. Multiple flags are allowed.`);
27
+ commander.program.name('mc-scripts').description('CLI to develop and build Merchant Center customizations.').version(_package.pkgJson.version).option('-e, --env <path...>', // Variadic option. It allows multiple `--env` options to be provided.
28
+ "(optional) Parses the file path as a dotenv file and adds the variables to the environment. Multiple flags are allowed.");
30
29
 
31
30
  // Makes the script crash on unhandled rejections instead of silently
32
31
  // ignoring them. In the future, promise rejections that are not handled will
@@ -54,7 +53,7 @@ async function run() {
54
53
  console.log('Experimental Vite bundler enabled! 🚀');
55
54
  console.log('');
56
55
  }
57
- const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-068e9f73.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-3a463b77.cjs.dev.js'); });
56
+ const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-eea72ba9.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-7e607d2a.cjs.dev.js'); });
58
57
  await startCommand.default();
59
58
  });
60
59
 
@@ -73,12 +72,12 @@ async function run() {
73
72
  console.log('Experimental Vite bundler enabled! 🚀');
74
73
  console.log('');
75
74
  }
76
- const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-16b1a575.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-566e6a6f.cjs.dev.js'); });
75
+ const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-e26f6c9f.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-895fb1d2.cjs.dev.js'); });
77
76
  await buildCommand.default();
78
77
  const shouldAlsoCompile = !options.buildOnly;
79
78
  if (shouldAlsoCompile) {
80
79
  console.log('');
81
- const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-f4ac88cc.cjs.dev.js'); });
80
+ const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-8679f721.cjs.dev.js'); });
82
81
  await compileHtmlCommand.default({
83
82
  printSecurityHeaders: false
84
83
  });
@@ -95,7 +94,7 @@ async function run() {
95
94
 
96
95
  // Do this as the first thing so that any code reading it knows the right env.
97
96
  process.env.NODE_ENV = 'production';
98
- const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-f4ac88cc.cjs.dev.js'); });
97
+ const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-8679f721.cjs.dev.js'); });
99
98
  await compileHtmlCommand.default(options);
100
99
  });
101
100
 
@@ -109,7 +108,7 @@ async function run() {
109
108
 
110
109
  // Do this as the first thing so that any code reading it knows the right env.
111
110
  process.env.NODE_ENV = 'production';
112
- const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-50d33f0b.cjs.dev.js'); });
111
+ const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-04a03d5f.cjs.dev.js'); });
113
112
  await serveCommand.default();
114
113
  });
115
114
 
@@ -125,7 +124,7 @@ async function run() {
125
124
 
126
125
  // Do this as the first thing so that any code reading it knows the right env.
127
126
  process.env.NODE_ENV = 'production';
128
- const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-ae425412.cjs.dev.js'); });
127
+ const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-935abd52.cjs.dev.js'); });
129
128
  await loginCommand.default(options);
130
129
  });
131
130
 
@@ -139,7 +138,7 @@ async function run() {
139
138
 
140
139
  // Do this as the first thing so that any code reading it knows the right env.
141
140
  process.env.NODE_ENV = 'production';
142
- const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-5c9abc61.cjs.dev.js'); });
141
+ const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-ffddb604.cjs.dev.js'); });
143
142
  await configSyncCommand.default(options);
144
143
  });
145
144
 
@@ -153,7 +152,7 @@ async function run() {
153
152
 
154
153
  // Do this as the first thing so that any code reading it knows the right env.
155
154
  process.env.NODE_ENV = 'production';
156
- const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-5ea606f0.cjs.dev.js'); });
155
+ const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-1e263b53.cjs.dev.js'); });
157
156
  await deploymentsSetCommand.default(options);
158
157
  });
159
158
  commander.program.parse();
@@ -176,11 +175,11 @@ function loadDotEnvFiles(globalOptions) {
176
175
  }
177
176
 
178
177
  // https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
179
- dotenvFiles.push(..._filterInstanceProperty__default["default"](_context = [`.env.${environment}.local`,
178
+ dotenvFiles.push(..._filterInstanceProperty__default["default"](_context = [".env.".concat(environment, ".local"),
180
179
  // Don't include `.env.local` for `test` environment
181
180
  // since normally you expect tests to produce the same
182
181
  // results for everyone
183
- process.env.NODE_ENV !== 'test' && `.env.local`, `.env.${environment}`, '.env']).call(_context, Boolean));
182
+ process.env.NODE_ENV !== 'test' && ".env.local", ".env.".concat(environment), '.env']).call(_context, Boolean));
184
183
 
185
184
  // Load environment variables from .env* files. Suppress warnings using silent
186
185
  // if this file is missing. dotenv will never modify any environment variables
@@ -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-3874f63c.cjs.prod.js');
13
+ var _package = require('../../dist/package-ad6a5026.cjs.prod.js');
14
14
  var doesFileExist = require('../../dist/does-file-exist-be53305d.cjs.prod.js');
15
15
  require('node:fs');
16
16
 
@@ -24,9 +24,8 @@ var path__default = /*#__PURE__*/_interopDefault(path);
24
24
  var dotenv__default = /*#__PURE__*/_interopDefault(dotenv);
25
25
  var dotenvExpand__default = /*#__PURE__*/_interopDefault(dotenvExpand);
26
26
 
27
- commander.program.name('mc-scripts').description('CLI to develop and build Merchant Center customizations.').version(_package.pkgJson.version).option('-e, --env <path...>',
28
- // Variadic option. It allows multiple `--env` options to be provided.
29
- `(optional) Parses the file path as a dotenv file and adds the variables to the environment. Multiple flags are allowed.`);
27
+ commander.program.name('mc-scripts').description('CLI to develop and build Merchant Center customizations.').version(_package.pkgJson.version).option('-e, --env <path...>', // Variadic option. It allows multiple `--env` options to be provided.
28
+ "(optional) Parses the file path as a dotenv file and adds the variables to the environment. Multiple flags are allowed.");
30
29
 
31
30
  // Makes the script crash on unhandled rejections instead of silently
32
31
  // ignoring them. In the future, promise rejections that are not handled will
@@ -54,7 +53,7 @@ async function run() {
54
53
  console.log('Experimental Vite bundler enabled! 🚀');
55
54
  console.log('');
56
55
  }
57
- const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-29078b3a.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-25f6f1cf.cjs.prod.js'); });
56
+ const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-d548c121.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-3a301547.cjs.prod.js'); });
58
57
  await startCommand.default();
59
58
  });
60
59
 
@@ -73,12 +72,12 @@ async function run() {
73
72
  console.log('Experimental Vite bundler enabled! 🚀');
74
73
  console.log('');
75
74
  }
76
- const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-5d317720.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-659191e5.cjs.prod.js'); });
75
+ const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-4a6c90c2.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-be24f6d9.cjs.prod.js'); });
77
76
  await buildCommand.default();
78
77
  const shouldAlsoCompile = !options.buildOnly;
79
78
  if (shouldAlsoCompile) {
80
79
  console.log('');
81
- const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-50fd05ec.cjs.prod.js'); });
80
+ const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-b80f9651.cjs.prod.js'); });
82
81
  await compileHtmlCommand.default({
83
82
  printSecurityHeaders: false
84
83
  });
@@ -95,7 +94,7 @@ async function run() {
95
94
 
96
95
  // Do this as the first thing so that any code reading it knows the right env.
97
96
  process.env.NODE_ENV = 'production';
98
- const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-50fd05ec.cjs.prod.js'); });
97
+ const compileHtmlCommand = await Promise.resolve().then(function () { return require('../../dist/compile-html-b80f9651.cjs.prod.js'); });
99
98
  await compileHtmlCommand.default(options);
100
99
  });
101
100
 
@@ -109,7 +108,7 @@ async function run() {
109
108
 
110
109
  // Do this as the first thing so that any code reading it knows the right env.
111
110
  process.env.NODE_ENV = 'production';
112
- const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-8a506da6.cjs.prod.js'); });
111
+ const serveCommand = await Promise.resolve().then(function () { return require('../../dist/serve-2a863026.cjs.prod.js'); });
113
112
  await serveCommand.default();
114
113
  });
115
114
 
@@ -125,7 +124,7 @@ async function run() {
125
124
 
126
125
  // Do this as the first thing so that any code reading it knows the right env.
127
126
  process.env.NODE_ENV = 'production';
128
- const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-cc1d6e23.cjs.prod.js'); });
127
+ const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-bf7607cf.cjs.prod.js'); });
129
128
  await loginCommand.default(options);
130
129
  });
131
130
 
@@ -139,7 +138,7 @@ async function run() {
139
138
 
140
139
  // Do this as the first thing so that any code reading it knows the right env.
141
140
  process.env.NODE_ENV = 'production';
142
- const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-d75c4c90.cjs.prod.js'); });
141
+ const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-e32e3fa6.cjs.prod.js'); });
143
142
  await configSyncCommand.default(options);
144
143
  });
145
144
 
@@ -153,7 +152,7 @@ async function run() {
153
152
 
154
153
  // Do this as the first thing so that any code reading it knows the right env.
155
154
  process.env.NODE_ENV = 'production';
156
- const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-da359e5f.cjs.prod.js'); });
155
+ const deploymentsSetCommand = await Promise.resolve().then(function () { return require('../../dist/deployment-previews-set-117c5626.cjs.prod.js'); });
157
156
  await deploymentsSetCommand.default(options);
158
157
  });
159
158
  commander.program.parse();
@@ -176,11 +175,11 @@ function loadDotEnvFiles(globalOptions) {
176
175
  }
177
176
 
178
177
  // https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
179
- dotenvFiles.push(..._filterInstanceProperty__default["default"](_context = [`.env.${environment}.local`,
178
+ dotenvFiles.push(..._filterInstanceProperty__default["default"](_context = [".env.".concat(environment, ".local"),
180
179
  // Don't include `.env.local` for `test` environment
181
180
  // since normally you expect tests to produce the same
182
181
  // results for everyone
183
- `.env.local`, `.env.${environment}`, '.env']).call(_context, Boolean));
182
+ ".env.local", ".env.".concat(environment), '.env']).call(_context, Boolean));
184
183
 
185
184
  // Load environment variables from .env* files. Suppress warnings using silent
186
185
  // if this file is missing. dotenv will never modify any environment variables
@@ -6,13 +6,12 @@ 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-9710aafc.esm.js';
9
+ import { p as pkgJson } from '../../dist/package-31f38f64.esm.js';
10
10
  import { d as doesFileExist } from '../../dist/does-file-exist-32618334.esm.js';
11
11
  import 'node:fs';
12
12
 
13
- program.name('mc-scripts').description('CLI to develop and build Merchant Center customizations.').version(pkgJson.version).option('-e, --env <path...>',
14
- // Variadic option. It allows multiple `--env` options to be provided.
15
- `(optional) Parses the file path as a dotenv file and adds the variables to the environment. Multiple flags are allowed.`);
13
+ program.name('mc-scripts').description('CLI to develop and build Merchant Center customizations.').version(pkgJson.version).option('-e, --env <path...>', // Variadic option. It allows multiple `--env` options to be provided.
14
+ "(optional) Parses the file path as a dotenv file and adds the variables to the environment. Multiple flags are allowed.");
16
15
 
17
16
  // Makes the script crash on unhandled rejections instead of silently
18
17
  // ignoring them. In the future, promise rejections that are not handled will
@@ -40,7 +39,7 @@ async function run() {
40
39
  console.log('Experimental Vite bundler enabled! 🚀');
41
40
  console.log('');
42
41
  }
43
- const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-7d1161e8.esm.js') : await import('../../dist/start-01621f67.esm.js');
42
+ const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-d649d1f3.esm.js') : await import('../../dist/start-57d1d14c.esm.js');
44
43
  await startCommand.default();
45
44
  });
46
45
 
@@ -59,12 +58,12 @@ async function run() {
59
58
  console.log('Experimental Vite bundler enabled! 🚀');
60
59
  console.log('');
61
60
  }
62
- const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-59e1f185.esm.js') : await import('../../dist/build-4a46d4f2.esm.js');
61
+ const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-85211835.esm.js') : await import('../../dist/build-1c7d82ef.esm.js');
63
62
  await buildCommand.default();
64
63
  const shouldAlsoCompile = !options.buildOnly;
65
64
  if (shouldAlsoCompile) {
66
65
  console.log('');
67
- const compileHtmlCommand = await import('../../dist/compile-html-025cd493.esm.js');
66
+ const compileHtmlCommand = await import('../../dist/compile-html-adfef598.esm.js');
68
67
  await compileHtmlCommand.default({
69
68
  printSecurityHeaders: false
70
69
  });
@@ -81,7 +80,7 @@ async function run() {
81
80
 
82
81
  // Do this as the first thing so that any code reading it knows the right env.
83
82
  process.env.NODE_ENV = 'production';
84
- const compileHtmlCommand = await import('../../dist/compile-html-025cd493.esm.js');
83
+ const compileHtmlCommand = await import('../../dist/compile-html-adfef598.esm.js');
85
84
  await compileHtmlCommand.default(options);
86
85
  });
87
86
 
@@ -95,7 +94,7 @@ async function run() {
95
94
 
96
95
  // Do this as the first thing so that any code reading it knows the right env.
97
96
  process.env.NODE_ENV = 'production';
98
- const serveCommand = await import('../../dist/serve-1036c2de.esm.js');
97
+ const serveCommand = await import('../../dist/serve-fb1a0f5a.esm.js');
99
98
  await serveCommand.default();
100
99
  });
101
100
 
@@ -111,7 +110,7 @@ async function run() {
111
110
 
112
111
  // Do this as the first thing so that any code reading it knows the right env.
113
112
  process.env.NODE_ENV = 'production';
114
- const loginCommand = await import('../../dist/login-e18068ff.esm.js');
113
+ const loginCommand = await import('../../dist/login-0223db92.esm.js');
115
114
  await loginCommand.default(options);
116
115
  });
117
116
 
@@ -125,7 +124,7 @@ async function run() {
125
124
 
126
125
  // Do this as the first thing so that any code reading it knows the right env.
127
126
  process.env.NODE_ENV = 'production';
128
- const configSyncCommand = await import('../../dist/config-sync-f6fbc36d.esm.js');
127
+ const configSyncCommand = await import('../../dist/config-sync-78ccf97c.esm.js');
129
128
  await configSyncCommand.default(options);
130
129
  });
131
130
 
@@ -139,7 +138,7 @@ async function run() {
139
138
 
140
139
  // Do this as the first thing so that any code reading it knows the right env.
141
140
  process.env.NODE_ENV = 'production';
142
- const deploymentsSetCommand = await import('../../dist/deployment-previews-set-f346c6db.esm.js');
141
+ const deploymentsSetCommand = await import('../../dist/deployment-previews-set-a243363b.esm.js');
143
142
  await deploymentsSetCommand.default(options);
144
143
  });
145
144
  program.parse();
@@ -162,11 +161,11 @@ function loadDotEnvFiles(globalOptions) {
162
161
  }
163
162
 
164
163
  // https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
165
- dotenvFiles.push(..._filterInstanceProperty(_context = [`.env.${environment}.local`,
164
+ dotenvFiles.push(..._filterInstanceProperty(_context = [".env.".concat(environment, ".local"),
166
165
  // Don't include `.env.local` for `test` environment
167
166
  // since normally you expect tests to produce the same
168
167
  // results for everyone
169
- process.env.NODE_ENV !== 'test' && `.env.local`, `.env.${environment}`, '.env']).call(_context, Boolean));
168
+ process.env.NODE_ENV !== 'test' && ".env.local", ".env.".concat(environment), '.env']).call(_context, Boolean));
170
169
 
171
170
  // Load environment variables from .env* files. Suppress warnings using silent
172
171
  // if this file is missing. dotenv will never modify any environment variables
@@ -8,8 +8,8 @@ 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-7a6d390e.esm.js';
12
- import { p as paths } from './paths-39f22b8b.esm.js';
11
+ import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-94bc1e6d.esm.js';
12
+ import { p as paths } from './paths-7bf7e88e.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';
15
15
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
@@ -38,11 +38,11 @@ import '@babel/runtime-corejs3/core-js-stable/instance/bind';
38
38
  import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
39
39
  import '@babel/runtime-corejs3/core-js-stable/object/assign';
40
40
  import 'fs';
41
- import './create-postcss-config-d0e65de0.esm.js';
41
+ import './create-postcss-config-3887c44a.esm.js';
42
42
  import '@babel/runtime-corejs3/helpers/slicedToArray';
43
- import './package-9710aafc.esm.js';
43
+ import './package-31f38f64.esm.js';
44
44
  import './has-jsx-runtime-e3ecb09b.esm.js';
45
- import './optimizations-bf991634.esm.js';
45
+ import './optimizations-ea71a24a.esm.js';
46
46
  import '@babel/runtime-corejs3/core-js-stable/object/entries';
47
47
  import '@babel/runtime-corejs3/core-js-stable/instance/includes';
48
48
  import './vendors-to-transpile-7dc84a72.esm.js';
@@ -89,7 +89,7 @@ async function run() {
89
89
  if (error instanceof Error) {
90
90
  printBuildError(error);
91
91
  }
92
- throw new Error(`Failed to compile`);
92
+ throw new Error("Failed to compile");
93
93
  }
94
94
 
95
95
  // Create the production build and print the deployment instructions.
@@ -120,7 +120,7 @@ async function run() {
120
120
  warnings: []
121
121
  });
122
122
  } else {
123
- messages = formatWebpackMessages(stats?.toJson({
123
+ messages = formatWebpackMessages(stats === null || stats === void 0 ? void 0 : stats.toJson({
124
124
  all: false,
125
125
  warnings: true,
126
126
  errors: true
@@ -10,8 +10,8 @@ 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-c0536780.cjs.dev.js');
14
- var paths = require('./paths-b76fc753.cjs.dev.js');
13
+ var createWebpackConfigForProduction = require('./create-webpack-config-for-production-28456828.cjs.dev.js');
14
+ var paths = require('./paths-ec3e3a7d.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');
17
17
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -40,11 +40,11 @@ require('@babel/runtime-corejs3/core-js-stable/instance/bind');
40
40
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
41
41
  require('@babel/runtime-corejs3/core-js-stable/object/assign');
42
42
  require('fs');
43
- require('./create-postcss-config-64f2da19.cjs.dev.js');
43
+ require('./create-postcss-config-a47547b4.cjs.dev.js');
44
44
  require('@babel/runtime-corejs3/helpers/slicedToArray');
45
- require('./package-9101f68f.cjs.dev.js');
45
+ require('./package-dc76e3fe.cjs.dev.js');
46
46
  require('./has-jsx-runtime-aa5d21ee.cjs.dev.js');
47
- require('./optimizations-7789145e.cjs.dev.js');
47
+ require('./optimizations-ebbeaf88.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');
50
50
  require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
@@ -103,7 +103,7 @@ async function run() {
103
103
  if (error instanceof Error) {
104
104
  printBuildError__default["default"](error);
105
105
  }
106
- throw new Error(`Failed to compile`);
106
+ throw new Error("Failed to compile");
107
107
  }
108
108
 
109
109
  // Create the production build and print the deployment instructions.
@@ -134,7 +134,7 @@ async function run() {
134
134
  warnings: []
135
135
  });
136
136
  } else {
137
- messages = formatWebpackMessages__default["default"](stats?.toJson({
137
+ messages = formatWebpackMessages__default["default"](stats === null || stats === void 0 ? void 0 : stats.toJson({
138
138
  all: false,
139
139
  warnings: true,
140
140
  errors: true
@@ -10,8 +10,8 @@ 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-f92681a6.cjs.prod.js');
14
- var paths = require('./paths-7768b440.cjs.prod.js');
13
+ var createWebpackConfigForProduction = require('./create-webpack-config-for-production-59e18392.cjs.prod.js');
14
+ var paths = require('./paths-af1a725a.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');
17
17
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -40,11 +40,11 @@ require('@babel/runtime-corejs3/core-js-stable/instance/bind');
40
40
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
41
41
  require('@babel/runtime-corejs3/core-js-stable/object/assign');
42
42
  require('fs');
43
- require('./create-postcss-config-fb85a144.cjs.prod.js');
43
+ require('./create-postcss-config-2d574316.cjs.prod.js');
44
44
  require('@babel/runtime-corejs3/helpers/slicedToArray');
45
- require('./package-3874f63c.cjs.prod.js');
45
+ require('./package-ad6a5026.cjs.prod.js');
46
46
  require('./has-jsx-runtime-c3202df5.cjs.prod.js');
47
- require('./optimizations-fb93514f.cjs.prod.js');
47
+ require('./optimizations-ea21b802.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');
50
50
  require('./vendors-to-transpile-04a49d40.cjs.prod.js');
@@ -103,7 +103,7 @@ async function run() {
103
103
  if (error instanceof Error) {
104
104
  printBuildError__default["default"](error);
105
105
  }
106
- throw new Error(`Failed to compile`);
106
+ throw new Error("Failed to compile");
107
107
  }
108
108
 
109
109
  // Create the production build and print the deployment instructions.
@@ -134,7 +134,7 @@ async function run() {
134
134
  warnings: []
135
135
  });
136
136
  } else {
137
- messages = formatWebpackMessages__default["default"](stats?.toJson({
137
+ messages = formatWebpackMessages__default["default"](stats === null || stats === void 0 ? void 0 : stats.toJson({
138
138
  all: false,
139
139
  warnings: true,
140
140
  errors: true
@@ -12,17 +12,18 @@ 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
- var paths = require('./paths-7768b440.cjs.prod.js');
15
+ var optimizations = require('./optimizations-ea21b802.cjs.prod.js');
16
+ var paths = require('./paths-af1a725a.cjs.prod.js');
17
17
  var cliLib = require('@formatjs/cli-lib');
18
18
  var pluginutils = require('@rollup/pluginutils');
19
- var i18nMessageComplilation = require('./i18n-message-complilation-7762da61.cjs.prod.js');
20
- var vitePluginSvgr = require('./vite-plugin-svgr-4034a834.cjs.prod.js');
19
+ var i18nMessageComplilation = require('./i18n-message-complilation-393d344a.cjs.prod.js');
20
+ var vitePluginSvgr = require('./vite-plugin-svgr-5de1cad9.cjs.prod.js');
21
21
  require('@babel/runtime-corejs3/helpers/defineProperty');
22
22
  require('@babel/runtime-corejs3/helpers/slicedToArray');
23
23
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
24
24
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
25
25
  require('@babel/runtime-corejs3/core-js-stable/instance/includes');
26
+ require('@babel/runtime-corejs3/core-js-stable/instance/concat');
26
27
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
27
28
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
28
29
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
@@ -75,7 +76,7 @@ function nonNullable(value) {
75
76
  // This script/function is injected into the `index.html` and used by Vite
76
77
  // on runtime to build the assets URL (for example when using a separate CDN for the assets).
77
78
  // Inspired by https://github.com/vitejs/vite/blob/main/playground/assets/vite.config-runtime-base.js
78
- const dynamicBaseAssetsCode = `globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;`;
79
+ const dynamicBaseAssetsCode = "globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;";
79
80
  function vitePluginDynamicBaseAssetsGlobals() {
80
81
  return {
81
82
  name: 'dynamic-base-assets-globals',
@@ -136,7 +137,7 @@ async function run() {
136
137
  const html = mcHtmlTemplate.generateTemplate({
137
138
  // Define the module entry point (path relative from the `/public` folder).
138
139
  // NOTE: that this is different from the development configuration.
139
- scriptImports: [`<script type="module" src="/${appEntryPoint}" defer></script>`]
140
+ scriptImports: ["<script type=\"module\" src=\"/".concat(appEntryPoint, "\" defer></script>")]
140
141
  });
141
142
  // Write `index.html` (template) into the `/public` folder.
142
143
  fs__default["default"].writeFileSync(paths.paths.appIndexHtml, html, {
@@ -182,10 +183,10 @@ async function run() {
182
183
  renderBuiltUrl(filename, _ref) {
183
184
  let hostType = _ref.hostType;
184
185
  if (hostType === 'html') {
185
- return `__CDN_URL__${filename}`;
186
+ return "__CDN_URL__".concat(filename);
186
187
  }
187
188
  return {
188
- runtime: `window.__toCdnUrl(${_JSON$stringify__default["default"](filename)})`
189
+ runtime: "window.__toCdnUrl(".concat(_JSON$stringify__default["default"](filename), ")")
189
190
  };
190
191
  }
191
192
  },
@@ -10,17 +10,18 @@ import { build } from 'vite';
10
10
  import { analyzer } from 'vite-bundle-analyzer';
11
11
  import { packageLocation } from '@commercetools-frontend/assets';
12
12
  import { generateTemplate } from '@commercetools-frontend/mc-html-template';
13
- import { a as getViteCacheGroups } from './optimizations-bf991634.esm.js';
14
- import { p as paths } from './paths-39f22b8b.esm.js';
13
+ import { a as getViteCacheGroups } from './optimizations-ea71a24a.esm.js';
14
+ import { p as paths } from './paths-7bf7e88e.esm.js';
15
15
  import { compile } from '@formatjs/cli-lib';
16
16
  import { createFilter } from '@rollup/pluginutils';
17
- import { g as getI18nMessageFormat, h as handleMessageCompilationError } from './i18n-message-complilation-21d3b0aa.esm.js';
18
- import { v as vitePluginSvgr } from './vite-plugin-svgr-de6ee7da.esm.js';
17
+ import { g as getI18nMessageFormat, h as handleMessageCompilationError } from './i18n-message-complilation-8aec9d1b.esm.js';
18
+ import { v as vitePluginSvgr } from './vite-plugin-svgr-22c8d518.esm.js';
19
19
  import '@babel/runtime-corejs3/helpers/defineProperty';
20
20
  import '@babel/runtime-corejs3/helpers/slicedToArray';
21
21
  import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
22
22
  import '@babel/runtime-corejs3/core-js-stable/object/entries';
23
23
  import '@babel/runtime-corejs3/core-js-stable/instance/includes';
24
+ import '@babel/runtime-corejs3/core-js-stable/instance/concat';
24
25
  import '@babel/runtime-corejs3/core-js-stable/object/keys';
25
26
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
26
27
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
@@ -45,7 +46,7 @@ function nonNullable(value) {
45
46
  // This script/function is injected into the `index.html` and used by Vite
46
47
  // on runtime to build the assets URL (for example when using a separate CDN for the assets).
47
48
  // Inspired by https://github.com/vitejs/vite/blob/main/playground/assets/vite.config-runtime-base.js
48
- const dynamicBaseAssetsCode = `globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;`;
49
+ const dynamicBaseAssetsCode = "globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;";
49
50
  function vitePluginDynamicBaseAssetsGlobals() {
50
51
  return {
51
52
  name: 'dynamic-base-assets-globals',
@@ -106,7 +107,7 @@ async function run() {
106
107
  const html = generateTemplate({
107
108
  // Define the module entry point (path relative from the `/public` folder).
108
109
  // NOTE: that this is different from the development configuration.
109
- scriptImports: [`<script type="module" src="/${appEntryPoint}" defer></script>`]
110
+ scriptImports: ["<script type=\"module\" src=\"/".concat(appEntryPoint, "\" defer></script>")]
110
111
  });
111
112
  // Write `index.html` (template) into the `/public` folder.
112
113
  fs.writeFileSync(paths.appIndexHtml, html, {
@@ -152,10 +153,10 @@ async function run() {
152
153
  renderBuiltUrl(filename, _ref) {
153
154
  let hostType = _ref.hostType;
154
155
  if (hostType === 'html') {
155
- return `__CDN_URL__${filename}`;
156
+ return "__CDN_URL__".concat(filename);
156
157
  }
157
158
  return {
158
- runtime: `window.__toCdnUrl(${_JSON$stringify(filename)})`
159
+ runtime: "window.__toCdnUrl(".concat(_JSON$stringify(filename), ")")
159
160
  };
160
161
  }
161
162
  },
@@ -12,17 +12,18 @@ 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
- var paths = require('./paths-b76fc753.cjs.dev.js');
15
+ var optimizations = require('./optimizations-ebbeaf88.cjs.dev.js');
16
+ var paths = require('./paths-ec3e3a7d.cjs.dev.js');
17
17
  var cliLib = require('@formatjs/cli-lib');
18
18
  var pluginutils = require('@rollup/pluginutils');
19
- var i18nMessageComplilation = require('./i18n-message-complilation-7311cb29.cjs.dev.js');
20
- var vitePluginSvgr = require('./vite-plugin-svgr-7d06f400.cjs.dev.js');
19
+ var i18nMessageComplilation = require('./i18n-message-complilation-3f80e8d6.cjs.dev.js');
20
+ var vitePluginSvgr = require('./vite-plugin-svgr-53ef97c7.cjs.dev.js');
21
21
  require('@babel/runtime-corejs3/helpers/defineProperty');
22
22
  require('@babel/runtime-corejs3/helpers/slicedToArray');
23
23
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
24
24
  require('@babel/runtime-corejs3/core-js-stable/object/entries');
25
25
  require('@babel/runtime-corejs3/core-js-stable/instance/includes');
26
+ require('@babel/runtime-corejs3/core-js-stable/instance/concat');
26
27
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
27
28
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
28
29
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
@@ -75,7 +76,7 @@ function nonNullable(value) {
75
76
  // This script/function is injected into the `index.html` and used by Vite
76
77
  // on runtime to build the assets URL (for example when using a separate CDN for the assets).
77
78
  // Inspired by https://github.com/vitejs/vite/blob/main/playground/assets/vite.config-runtime-base.js
78
- const dynamicBaseAssetsCode = `globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;`;
79
+ const dynamicBaseAssetsCode = "globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;";
79
80
  function vitePluginDynamicBaseAssetsGlobals() {
80
81
  return {
81
82
  name: 'dynamic-base-assets-globals',
@@ -136,7 +137,7 @@ async function run() {
136
137
  const html = mcHtmlTemplate.generateTemplate({
137
138
  // Define the module entry point (path relative from the `/public` folder).
138
139
  // NOTE: that this is different from the development configuration.
139
- scriptImports: [`<script type="module" src="/${appEntryPoint}" defer></script>`]
140
+ scriptImports: ["<script type=\"module\" src=\"/".concat(appEntryPoint, "\" defer></script>")]
140
141
  });
141
142
  // Write `index.html` (template) into the `/public` folder.
142
143
  fs__default["default"].writeFileSync(paths.paths.appIndexHtml, html, {
@@ -182,10 +183,10 @@ async function run() {
182
183
  renderBuiltUrl(filename, _ref) {
183
184
  let hostType = _ref.hostType;
184
185
  if (hostType === 'html') {
185
- return `__CDN_URL__${filename}`;
186
+ return "__CDN_URL__".concat(filename);
186
187
  }
187
188
  return {
188
- runtime: `window.__toCdnUrl(${_JSON$stringify__default["default"](filename)})`
189
+ runtime: "window.__toCdnUrl(".concat(_JSON$stringify__default["default"](filename), ")")
189
190
  };
190
191
  }
191
192
  },