@commercetools-frontend/mc-scripts 24.13.0 → 25.1.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/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.dev.js +1 -1
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.prod.js +1 -1
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.esm.js +1 -1
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +14 -13
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +14 -13
- package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +14 -13
- package/dist/{build-f737874d.cjs.dev.js → build-0a5986d1.cjs.dev.js} +7 -7
- package/dist/{build-85028596.esm.js → build-dbcd0936.esm.js} +7 -7
- package/dist/{build-136a1b89.cjs.prod.js → build-ec10df64.cjs.prod.js} +7 -7
- package/dist/{build-vite-e26f6c9f.cjs.dev.js → build-vite-16b1a575.cjs.dev.js} +8 -9
- package/dist/{build-vite-85211835.esm.js → build-vite-59e1f185.esm.js} +8 -9
- package/dist/{build-vite-4a6c90c2.cjs.prod.js → build-vite-5d317720.cjs.prod.js} +8 -9
- 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/{compile-html-adfef598.esm.js → compile-html-025cd493.esm.js} +2 -4
- package/dist/{compile-html-b80f9651.cjs.prod.js → compile-html-50fd05ec.cjs.prod.js} +2 -5
- package/dist/{compile-html-8679f721.cjs.dev.js → compile-html-f4ac88cc.cjs.dev.js} +2 -5
- package/dist/{config-sync-c2f0d0d2.cjs.prod.js → config-sync-ce05c66c.cjs.prod.js} +70 -78
- package/dist/{config-sync-a6d29e7e.cjs.dev.js → config-sync-dbb43993.cjs.dev.js} +72 -80
- package/dist/{config-sync-ca738e38.esm.js → config-sync-e7f53a98.esm.js} +71 -79
- package/dist/{create-postcss-config-2a12c11b.esm.js → create-postcss-config-0a86560d.esm.js} +1 -1
- package/dist/{create-postcss-config-7ea95e6f.cjs.dev.js → create-postcss-config-381b636b.cjs.dev.js} +1 -1
- package/dist/{create-postcss-config-43a47b87.cjs.prod.js → create-postcss-config-91c09596.cjs.prod.js} +1 -1
- package/dist/{create-webpack-config-for-development-01784333.cjs.prod.js → create-webpack-config-for-development-37677a49.cjs.prod.js} +6 -6
- package/dist/{create-webpack-config-for-development-09988fe4.cjs.dev.js → create-webpack-config-for-development-488742b2.cjs.dev.js} +6 -6
- package/dist/{create-webpack-config-for-development-ca57ea56.esm.js → create-webpack-config-for-development-df3f7f7f.esm.js} +6 -6
- package/dist/{create-webpack-config-for-production-d1699ee5.cjs.dev.js → create-webpack-config-for-production-46d817cc.cjs.dev.js} +7 -7
- package/dist/{create-webpack-config-for-production-58d046e9.cjs.prod.js → create-webpack-config-for-production-aad64e2a.cjs.prod.js} +7 -7
- package/dist/{create-webpack-config-for-production-7b4166fc.esm.js → create-webpack-config-for-production-e22f78d2.esm.js} +7 -7
- package/dist/{credentials-storage-381abf27.cjs.prod.js → credentials-storage-0b89aa0e.cjs.prod.js} +1 -1
- package/dist/{credentials-storage-7285d7b4.esm.js → credentials-storage-4464313c.esm.js} +1 -1
- package/dist/{credentials-storage-de220814.cjs.dev.js → credentials-storage-cbb5c559.cjs.dev.js} +1 -1
- package/dist/{deployment-previews-set-6baa8fc7.cjs.dev.js → deployment-previews-set-4edd48db.cjs.dev.js} +22 -28
- package/dist/{deployment-previews-set-86ea8608.cjs.prod.js → deployment-previews-set-636fb1a3.cjs.prod.js} +22 -28
- package/dist/{deployment-previews-set-8b33d390.esm.js → deployment-previews-set-bbef95d2.esm.js} +22 -27
- package/dist/{graphql-requests-73d961d9.cjs.dev.js → graphql-requests-0a6eeb3a.cjs.prod.js} +5 -8
- package/dist/{graphql-requests-b6ca7894.esm.js → graphql-requests-14074b2b.esm.js} +5 -8
- package/dist/{graphql-requests-4ff022ec.cjs.prod.js → graphql-requests-23f7ddb1.cjs.dev.js} +5 -8
- package/dist/{i18n-message-complilation-8aec9d1b.esm.js → i18n-message-complilation-21d3b0aa.esm.js} +1 -1
- package/dist/{i18n-message-complilation-3f80e8d6.cjs.dev.js → i18n-message-complilation-7311cb29.cjs.dev.js} +1 -1
- package/dist/{i18n-message-complilation-393d344a.cjs.prod.js → i18n-message-complilation-7762da61.cjs.prod.js} +1 -1
- package/dist/{login-5c212340.esm.js → login-1b222f33.esm.js} +27 -30
- package/dist/{login-b4e3433c.cjs.prod.js → login-54ebae96.cjs.prod.js} +28 -31
- package/dist/{login-856475d9.cjs.dev.js → login-a6fd5fbf.cjs.dev.js} +28 -31
- package/dist/{optimizations-ea21b802.cjs.prod.js → optimizations-7789145e.cjs.dev.js} +5 -8
- package/dist/{optimizations-ea71a24a.esm.js → optimizations-bf991634.esm.js} +5 -7
- package/dist/{optimizations-ebbeaf88.cjs.dev.js → optimizations-fb93514f.cjs.prod.js} +5 -8
- package/dist/{package-85c56dad.esm.js → package-a34835d9.esm.js} +9 -11
- package/dist/{package-36c179b4.cjs.prod.js → package-d8b1f4c0.cjs.dev.js} +9 -11
- package/dist/{package-483f057b.cjs.dev.js → package-e1f7242c.cjs.prod.js} +9 -11
- package/dist/{paths-7bf7e88e.esm.js → paths-39f22b8b.esm.js} +4 -9
- package/dist/{paths-af1a725a.cjs.prod.js → paths-7768b440.cjs.prod.js} +4 -10
- package/dist/{paths-ec3e3a7d.cjs.dev.js → paths-b76fc753.cjs.dev.js} +4 -10
- package/dist/{serve-04a03d5f.cjs.dev.js → serve-38456e1b.cjs.dev.js} +7 -6
- package/dist/{serve-fb1a0f5a.esm.js → serve-be1f9439.esm.js} +6 -6
- package/dist/{serve-2a863026.cjs.prod.js → serve-cc4a766d.cjs.prod.js} +7 -6
- package/dist/{start-33cc9cbb.cjs.prod.js → start-0be8a294.cjs.prod.js} +8 -9
- package/dist/{start-e28d1fec.cjs.dev.js → start-37ec4a7e.cjs.dev.js} +8 -9
- package/dist/{start-654d09ae.esm.js → start-890895df.esm.js} +8 -9
- package/dist/{start-vite-eea72ba9.cjs.dev.js → start-vite-068e9f73.cjs.dev.js} +3 -4
- package/dist/{start-vite-d548c121.cjs.prod.js → start-vite-29078b3a.cjs.prod.js} +3 -4
- package/dist/{start-vite-d649d1f3.esm.js → start-vite-7d1161e8.esm.js} +3 -4
- package/dist/{vite-plugin-svgr-53ef97c7.cjs.dev.js → vite-plugin-svgr-4034a834.cjs.prod.js} +4 -4
- package/dist/{vite-plugin-svgr-5de1cad9.cjs.prod.js → vite-plugin-svgr-7d06f400.cjs.dev.js} +4 -4
- package/dist/{vite-plugin-svgr-22c8d518.esm.js → vite-plugin-svgr-de6ee7da.esm.js} +4 -4
- package/package.json +9 -11
- 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 +6 -6
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +6 -6
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +6 -6
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.dev.js +1 -1
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.prod.js +1 -1
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.esm.js +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var pkgJson = {
|
|
4
4
|
name: "@commercetools-frontend/mc-scripts",
|
|
5
|
-
version: "
|
|
5
|
+
version: "25.1.0",
|
|
6
6
|
description: "Configuration and scripts for developing a MC application",
|
|
7
7
|
bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
8
8
|
repository: {
|
|
@@ -63,13 +63,13 @@ var pkgJson = {
|
|
|
63
63
|
"@babel/plugin-proposal-do-expressions": "^7.22.5",
|
|
64
64
|
"@babel/runtime": "^7.22.15",
|
|
65
65
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
66
|
-
"@commercetools-frontend/application-components": "
|
|
67
|
-
"@commercetools-frontend/application-config": "
|
|
68
|
-
"@commercetools-frontend/assets": "
|
|
69
|
-
"@commercetools-frontend/babel-preset-mc-app": "
|
|
70
|
-
"@commercetools-frontend/constants": "
|
|
71
|
-
"@commercetools-frontend/mc-dev-authentication": "
|
|
72
|
-
"@commercetools-frontend/mc-html-template": "
|
|
66
|
+
"@commercetools-frontend/application-components": "25.1.0",
|
|
67
|
+
"@commercetools-frontend/application-config": "25.1.0",
|
|
68
|
+
"@commercetools-frontend/assets": "25.1.0",
|
|
69
|
+
"@commercetools-frontend/babel-preset-mc-app": "25.1.0",
|
|
70
|
+
"@commercetools-frontend/constants": "25.1.0",
|
|
71
|
+
"@commercetools-frontend/mc-dev-authentication": "25.1.0",
|
|
72
|
+
"@commercetools-frontend/mc-html-template": "25.1.0",
|
|
73
73
|
"@commercetools/http-user-agent": "3.0.0",
|
|
74
74
|
"@emotion/babel-plugin": "^11.13.5",
|
|
75
75
|
"@formatjs/cli-lib": "^6.3.8",
|
|
@@ -87,7 +87,7 @@ var pkgJson = {
|
|
|
87
87
|
autoprefixer: "^10.4.15",
|
|
88
88
|
"babel-loader": "8.4.1",
|
|
89
89
|
"babel-plugin-formatjs": "^10.5.25",
|
|
90
|
-
browserslist: "^4.
|
|
90
|
+
browserslist: "^4.28.1",
|
|
91
91
|
chalk: "4.1.2",
|
|
92
92
|
commander: "^13.1.0",
|
|
93
93
|
"core-js": "^3.32.2",
|
|
@@ -141,14 +141,12 @@ var pkgJson = {
|
|
|
141
141
|
"@tsconfig/node22": "^22.0.0",
|
|
142
142
|
"@types/fs-extra": "^11.0.1",
|
|
143
143
|
"@types/lodash": "^4.14.198",
|
|
144
|
-
"@types/mock-fs": "^4.13.4",
|
|
145
144
|
"@types/moment-locales-webpack-plugin": "^1.2.3",
|
|
146
145
|
"@types/node-fetch": "2.6.13",
|
|
147
146
|
"@types/prettier": "2.7.3",
|
|
148
147
|
"@types/serve-handler": "^6.1.1",
|
|
149
148
|
"jest-mock": "29.7.0",
|
|
150
149
|
memfs: "^4.8.2",
|
|
151
|
-
"mock-fs": "^5.4.1",
|
|
152
150
|
msw: "^1.3.5",
|
|
153
151
|
rimraf: "6.0.1"
|
|
154
152
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var pkgJson = {
|
|
4
4
|
name: "@commercetools-frontend/mc-scripts",
|
|
5
|
-
version: "
|
|
5
|
+
version: "25.1.0",
|
|
6
6
|
description: "Configuration and scripts for developing a MC application",
|
|
7
7
|
bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
8
8
|
repository: {
|
|
@@ -63,13 +63,13 @@ var pkgJson = {
|
|
|
63
63
|
"@babel/plugin-proposal-do-expressions": "^7.22.5",
|
|
64
64
|
"@babel/runtime": "^7.22.15",
|
|
65
65
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
66
|
-
"@commercetools-frontend/application-components": "
|
|
67
|
-
"@commercetools-frontend/application-config": "
|
|
68
|
-
"@commercetools-frontend/assets": "
|
|
69
|
-
"@commercetools-frontend/babel-preset-mc-app": "
|
|
70
|
-
"@commercetools-frontend/constants": "
|
|
71
|
-
"@commercetools-frontend/mc-dev-authentication": "
|
|
72
|
-
"@commercetools-frontend/mc-html-template": "
|
|
66
|
+
"@commercetools-frontend/application-components": "25.1.0",
|
|
67
|
+
"@commercetools-frontend/application-config": "25.1.0",
|
|
68
|
+
"@commercetools-frontend/assets": "25.1.0",
|
|
69
|
+
"@commercetools-frontend/babel-preset-mc-app": "25.1.0",
|
|
70
|
+
"@commercetools-frontend/constants": "25.1.0",
|
|
71
|
+
"@commercetools-frontend/mc-dev-authentication": "25.1.0",
|
|
72
|
+
"@commercetools-frontend/mc-html-template": "25.1.0",
|
|
73
73
|
"@commercetools/http-user-agent": "3.0.0",
|
|
74
74
|
"@emotion/babel-plugin": "^11.13.5",
|
|
75
75
|
"@formatjs/cli-lib": "^6.3.8",
|
|
@@ -87,7 +87,7 @@ var pkgJson = {
|
|
|
87
87
|
autoprefixer: "^10.4.15",
|
|
88
88
|
"babel-loader": "8.4.1",
|
|
89
89
|
"babel-plugin-formatjs": "^10.5.25",
|
|
90
|
-
browserslist: "^4.
|
|
90
|
+
browserslist: "^4.28.1",
|
|
91
91
|
chalk: "4.1.2",
|
|
92
92
|
commander: "^13.1.0",
|
|
93
93
|
"core-js": "^3.32.2",
|
|
@@ -141,14 +141,12 @@ var pkgJson = {
|
|
|
141
141
|
"@tsconfig/node22": "^22.0.0",
|
|
142
142
|
"@types/fs-extra": "^11.0.1",
|
|
143
143
|
"@types/lodash": "^4.14.198",
|
|
144
|
-
"@types/mock-fs": "^4.13.4",
|
|
145
144
|
"@types/moment-locales-webpack-plugin": "^1.2.3",
|
|
146
145
|
"@types/node-fetch": "2.6.13",
|
|
147
146
|
"@types/prettier": "2.7.3",
|
|
148
147
|
"@types/serve-handler": "^6.1.1",
|
|
149
148
|
"jest-mock": "29.7.0",
|
|
150
149
|
memfs: "^4.8.2",
|
|
151
|
-
"mock-fs": "^5.4.1",
|
|
152
150
|
msw: "^1.3.5",
|
|
153
151
|
rimraf: "6.0.1"
|
|
154
152
|
},
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
2
|
-
import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
3
2
|
import fs from 'fs';
|
|
4
3
|
import path from 'path';
|
|
5
4
|
import { d as doesFileExist } from './does-file-exist-32618334.esm.js';
|
|
@@ -13,15 +12,11 @@ const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
|
|
|
13
12
|
|
|
14
13
|
// Resolve file paths in the order given
|
|
15
14
|
const resolveModule = (resolveFn, filePath) => {
|
|
16
|
-
const extension = _findInstanceProperty(moduleFileExtensions).call(moduleFileExtensions, extension => {
|
|
17
|
-
var _context;
|
|
18
|
-
return doesFileExist(resolveFn(_concatInstanceProperty(_context = "".concat(filePath, ".")).call(_context, extension)));
|
|
19
|
-
});
|
|
15
|
+
const extension = _findInstanceProperty(moduleFileExtensions).call(moduleFileExtensions, extension => doesFileExist(resolveFn(`${filePath}.${extension}`)));
|
|
20
16
|
if (extension) {
|
|
21
|
-
|
|
22
|
-
return resolveFn(_concatInstanceProperty(_context2 = "".concat(filePath, ".")).call(_context2, extension));
|
|
17
|
+
return resolveFn(`${filePath}.${extension}`);
|
|
23
18
|
}
|
|
24
|
-
return resolveFn(
|
|
19
|
+
return resolveFn(`${filePath}.js`);
|
|
25
20
|
};
|
|
26
21
|
|
|
27
22
|
// Resolve the absolute path of the caller location. This is necessary
|
|
@@ -31,7 +26,7 @@ const paths = {
|
|
|
31
26
|
appBuild: resolveApp('public'),
|
|
32
27
|
appIndexHtmlTemplate: resolveApp('public/index.html.template'),
|
|
33
28
|
appIndexHtml: resolveApp('public/index.html'),
|
|
34
|
-
appWebpackConfig: resolveModule(resolveApp,
|
|
29
|
+
appWebpackConfig: resolveModule(resolveApp, `webpack.config.${process.env.NODE_ENV === 'production' ? 'prod' : 'dev'}`),
|
|
35
30
|
yarnLockFile: resolveApp('yarn.lock'),
|
|
36
31
|
appRoot: resolveApp('.'),
|
|
37
32
|
entryPoint: resolveModule(resolveApp, 'src/index'),
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
4
|
-
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
5
4
|
var fs = require('fs');
|
|
6
5
|
var path = require('path');
|
|
7
6
|
var doesFileExist = require('./does-file-exist-be53305d.cjs.prod.js');
|
|
@@ -9,7 +8,6 @@ var doesFileExist = require('./does-file-exist-be53305d.cjs.prod.js');
|
|
|
9
8
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
10
9
|
|
|
11
10
|
var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
|
|
12
|
-
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
|
|
13
11
|
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
14
12
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
15
13
|
|
|
@@ -22,15 +20,11 @@ const resolveApp = relativePath => path__default["default"].resolve(appDirectory
|
|
|
22
20
|
|
|
23
21
|
// Resolve file paths in the order given
|
|
24
22
|
const resolveModule = (resolveFn, filePath) => {
|
|
25
|
-
const extension = _findInstanceProperty__default["default"](moduleFileExtensions).call(moduleFileExtensions, extension => {
|
|
26
|
-
var _context;
|
|
27
|
-
return doesFileExist.doesFileExist(resolveFn(_concatInstanceProperty__default["default"](_context = "".concat(filePath, ".")).call(_context, extension)));
|
|
28
|
-
});
|
|
23
|
+
const extension = _findInstanceProperty__default["default"](moduleFileExtensions).call(moduleFileExtensions, extension => doesFileExist.doesFileExist(resolveFn(`${filePath}.${extension}`)));
|
|
29
24
|
if (extension) {
|
|
30
|
-
|
|
31
|
-
return resolveFn(_concatInstanceProperty__default["default"](_context2 = "".concat(filePath, ".")).call(_context2, extension));
|
|
25
|
+
return resolveFn(`${filePath}.${extension}`);
|
|
32
26
|
}
|
|
33
|
-
return resolveFn(
|
|
27
|
+
return resolveFn(`${filePath}.js`);
|
|
34
28
|
};
|
|
35
29
|
|
|
36
30
|
// Resolve the absolute path of the caller location. This is necessary
|
|
@@ -40,7 +34,7 @@ const paths = {
|
|
|
40
34
|
appBuild: resolveApp('public'),
|
|
41
35
|
appIndexHtmlTemplate: resolveApp('public/index.html.template'),
|
|
42
36
|
appIndexHtml: resolveApp('public/index.html'),
|
|
43
|
-
appWebpackConfig: resolveModule(resolveApp,
|
|
37
|
+
appWebpackConfig: resolveModule(resolveApp, `webpack.config.${'prod' }`),
|
|
44
38
|
yarnLockFile: resolveApp('yarn.lock'),
|
|
45
39
|
appRoot: resolveApp('.'),
|
|
46
40
|
entryPoint: resolveModule(resolveApp, 'src/index'),
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
4
|
-
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
5
4
|
var fs = require('fs');
|
|
6
5
|
var path = require('path');
|
|
7
6
|
var doesFileExist = require('./does-file-exist-eb86baca.cjs.dev.js');
|
|
@@ -9,7 +8,6 @@ var doesFileExist = require('./does-file-exist-eb86baca.cjs.dev.js');
|
|
|
9
8
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
10
9
|
|
|
11
10
|
var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
|
|
12
|
-
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
|
|
13
11
|
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
14
12
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
15
13
|
|
|
@@ -22,15 +20,11 @@ const resolveApp = relativePath => path__default["default"].resolve(appDirectory
|
|
|
22
20
|
|
|
23
21
|
// Resolve file paths in the order given
|
|
24
22
|
const resolveModule = (resolveFn, filePath) => {
|
|
25
|
-
const extension = _findInstanceProperty__default["default"](moduleFileExtensions).call(moduleFileExtensions, extension => {
|
|
26
|
-
var _context;
|
|
27
|
-
return doesFileExist.doesFileExist(resolveFn(_concatInstanceProperty__default["default"](_context = "".concat(filePath, ".")).call(_context, extension)));
|
|
28
|
-
});
|
|
23
|
+
const extension = _findInstanceProperty__default["default"](moduleFileExtensions).call(moduleFileExtensions, extension => doesFileExist.doesFileExist(resolveFn(`${filePath}.${extension}`)));
|
|
29
24
|
if (extension) {
|
|
30
|
-
|
|
31
|
-
return resolveFn(_concatInstanceProperty__default["default"](_context2 = "".concat(filePath, ".")).call(_context2, extension));
|
|
25
|
+
return resolveFn(`${filePath}.${extension}`);
|
|
32
26
|
}
|
|
33
|
-
return resolveFn(
|
|
27
|
+
return resolveFn(`${filePath}.js`);
|
|
34
28
|
};
|
|
35
29
|
|
|
36
30
|
// Resolve the absolute path of the caller location. This is necessary
|
|
@@ -40,7 +34,7 @@ const paths = {
|
|
|
40
34
|
appBuild: resolveApp('public'),
|
|
41
35
|
appIndexHtmlTemplate: resolveApp('public/index.html.template'),
|
|
42
36
|
appIndexHtml: resolveApp('public/index.html'),
|
|
43
|
-
appWebpackConfig: resolveModule(resolveApp,
|
|
37
|
+
appWebpackConfig: resolveModule(resolveApp, `webpack.config.${process.env.NODE_ENV === 'production' ? 'prod' : 'dev'}`),
|
|
44
38
|
yarnLockFile: resolveApp('yarn.lock'),
|
|
45
39
|
appRoot: resolveApp('.'),
|
|
46
40
|
entryPoint: resolveModule(resolveApp, 'src/index'),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
4
|
+
var _bindInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/bind');
|
|
4
5
|
var _URL = require('@babel/runtime-corejs3/core-js-stable/url');
|
|
5
6
|
var http = require('http');
|
|
6
7
|
var serveHandler = require('serve-handler');
|
|
7
8
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
8
|
-
var paths = require('./paths-
|
|
9
|
+
var paths = require('./paths-b76fc753.cjs.dev.js');
|
|
9
10
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
10
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
11
11
|
require('fs');
|
|
12
12
|
require('path');
|
|
13
13
|
require('./does-file-exist-eb86baca.cjs.dev.js');
|
|
@@ -16,6 +16,7 @@ require('node:fs');
|
|
|
16
16
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
17
17
|
|
|
18
18
|
var _startsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_startsWithInstanceProperty);
|
|
19
|
+
var _bindInstanceProperty__default = /*#__PURE__*/_interopDefault(_bindInstanceProperty);
|
|
19
20
|
var _URL__default = /*#__PURE__*/_interopDefault(_URL);
|
|
20
21
|
var http__default = /*#__PURE__*/_interopDefault(http);
|
|
21
22
|
var serveHandler__default = /*#__PURE__*/_interopDefault(serveHandler);
|
|
@@ -27,15 +28,15 @@ async function run() {
|
|
|
27
28
|
var _context;
|
|
28
29
|
// When developing against local APIs, handle the login|logout routes separately.
|
|
29
30
|
if (_startsWithInstanceProperty__default["default"](_context = applicationConfig$1.env.mcApiUrl).call(_context, 'http://localhost')) {
|
|
30
|
-
var
|
|
31
|
-
if ((
|
|
31
|
+
var _context2, _context3, _context4, _context5;
|
|
32
|
+
if (((_context2 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context3 = Function.call).call(_context3, _startsWithInstanceProperty__default["default"](_context2), _context2))?.('/login/authorize')) {
|
|
32
33
|
const redirectTo = new _URL__default["default"](request.url, applicationConfig$1.env.mcApiUrl);
|
|
33
34
|
response.writeHead(301, {
|
|
34
35
|
Location: redirectTo.toString()
|
|
35
36
|
}).end();
|
|
36
37
|
return;
|
|
37
38
|
}
|
|
38
|
-
if ((
|
|
39
|
+
if (((_context4 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context5 = Function.call).call(_context5, _startsWithInstanceProperty__default["default"](_context4), _context4))?.('/logout')) {
|
|
39
40
|
response.end('Please clear your session storage.');
|
|
40
41
|
return;
|
|
41
42
|
}
|
|
@@ -59,7 +60,7 @@ async function run() {
|
|
|
59
60
|
});
|
|
60
61
|
});
|
|
61
62
|
server.listen(port, () => {
|
|
62
|
-
console.log(
|
|
63
|
+
console.log(`Running at http://localhost:${port}`);
|
|
63
64
|
});
|
|
64
65
|
}
|
|
65
66
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import _startsWithInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
|
|
2
|
+
import _bindInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/bind';
|
|
2
3
|
import _URL from '@babel/runtime-corejs3/core-js-stable/url';
|
|
3
4
|
import http from 'http';
|
|
4
5
|
import serveHandler from 'serve-handler';
|
|
5
6
|
import { processConfig } from '@commercetools-frontend/application-config';
|
|
6
|
-
import { p as paths } from './paths-
|
|
7
|
+
import { p as paths } from './paths-39f22b8b.esm.js';
|
|
7
8
|
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
8
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
9
9
|
import 'fs';
|
|
10
10
|
import 'path';
|
|
11
11
|
import './does-file-exist-32618334.esm.js';
|
|
@@ -18,15 +18,15 @@ async function run() {
|
|
|
18
18
|
var _context;
|
|
19
19
|
// When developing against local APIs, handle the login|logout routes separately.
|
|
20
20
|
if (_startsWithInstanceProperty(_context = applicationConfig.env.mcApiUrl).call(_context, 'http://localhost')) {
|
|
21
|
-
var
|
|
22
|
-
if ((
|
|
21
|
+
var _context2, _context3, _context4, _context5;
|
|
22
|
+
if (((_context2 = request.url) == null ? void 0 : _bindInstanceProperty(_context3 = Function.call).call(_context3, _startsWithInstanceProperty(_context2), _context2))?.('/login/authorize')) {
|
|
23
23
|
const redirectTo = new _URL(request.url, applicationConfig.env.mcApiUrl);
|
|
24
24
|
response.writeHead(301, {
|
|
25
25
|
Location: redirectTo.toString()
|
|
26
26
|
}).end();
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
|
-
if ((
|
|
29
|
+
if (((_context4 = request.url) == null ? void 0 : _bindInstanceProperty(_context5 = Function.call).call(_context5, _startsWithInstanceProperty(_context4), _context4))?.('/logout')) {
|
|
30
30
|
response.end('Please clear your session storage.');
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
@@ -50,7 +50,7 @@ async function run() {
|
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
server.listen(port, () => {
|
|
53
|
-
console.log(
|
|
53
|
+
console.log(`Running at http://localhost:${port}`);
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var _startsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/starts-with');
|
|
4
|
+
var _bindInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/bind');
|
|
4
5
|
var _URL = require('@babel/runtime-corejs3/core-js-stable/url');
|
|
5
6
|
var http = require('http');
|
|
6
7
|
var serveHandler = require('serve-handler');
|
|
7
8
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
8
|
-
var paths = require('./paths-
|
|
9
|
+
var paths = require('./paths-7768b440.cjs.prod.js');
|
|
9
10
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
10
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
11
11
|
require('fs');
|
|
12
12
|
require('path');
|
|
13
13
|
require('./does-file-exist-be53305d.cjs.prod.js');
|
|
@@ -16,6 +16,7 @@ require('node:fs');
|
|
|
16
16
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
17
17
|
|
|
18
18
|
var _startsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_startsWithInstanceProperty);
|
|
19
|
+
var _bindInstanceProperty__default = /*#__PURE__*/_interopDefault(_bindInstanceProperty);
|
|
19
20
|
var _URL__default = /*#__PURE__*/_interopDefault(_URL);
|
|
20
21
|
var http__default = /*#__PURE__*/_interopDefault(http);
|
|
21
22
|
var serveHandler__default = /*#__PURE__*/_interopDefault(serveHandler);
|
|
@@ -27,15 +28,15 @@ async function run() {
|
|
|
27
28
|
var _context;
|
|
28
29
|
// When developing against local APIs, handle the login|logout routes separately.
|
|
29
30
|
if (_startsWithInstanceProperty__default["default"](_context = applicationConfig$1.env.mcApiUrl).call(_context, 'http://localhost')) {
|
|
30
|
-
var
|
|
31
|
-
if ((
|
|
31
|
+
var _context2, _context3, _context4, _context5;
|
|
32
|
+
if (((_context2 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context3 = Function.call).call(_context3, _startsWithInstanceProperty__default["default"](_context2), _context2))?.('/login/authorize')) {
|
|
32
33
|
const redirectTo = new _URL__default["default"](request.url, applicationConfig$1.env.mcApiUrl);
|
|
33
34
|
response.writeHead(301, {
|
|
34
35
|
Location: redirectTo.toString()
|
|
35
36
|
}).end();
|
|
36
37
|
return;
|
|
37
38
|
}
|
|
38
|
-
if ((
|
|
39
|
+
if (((_context4 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context5 = Function.call).call(_context5, _startsWithInstanceProperty__default["default"](_context4), _context4))?.('/logout')) {
|
|
39
40
|
response.end('Please clear your session storage.');
|
|
40
41
|
return;
|
|
41
42
|
}
|
|
@@ -59,7 +60,7 @@ async function run() {
|
|
|
59
60
|
});
|
|
60
61
|
});
|
|
61
62
|
server.listen(port, () => {
|
|
62
|
-
console.log(
|
|
63
|
+
console.log(`Running at http://localhost:${port}`);
|
|
63
64
|
});
|
|
64
65
|
}
|
|
65
66
|
|
|
@@ -9,8 +9,8 @@ var openBrowser = require('react-dev-utils/openBrowser');
|
|
|
9
9
|
var WebpackDevServerUtils = require('react-dev-utils/WebpackDevServerUtils');
|
|
10
10
|
var webpack = require('webpack');
|
|
11
11
|
var WebpackDevServer = require('webpack-dev-server');
|
|
12
|
-
var createWebpackConfigForDevelopment = require('./create-webpack-config-for-development-
|
|
13
|
-
var paths = require('./paths-
|
|
12
|
+
var createWebpackConfigForDevelopment = require('./create-webpack-config-for-development-37677a49.cjs.prod.js');
|
|
13
|
+
var paths = require('./paths-7768b440.cjs.prod.js');
|
|
14
14
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
15
15
|
var mcDevAuthentication = require('@commercetools-frontend/mc-dev-authentication');
|
|
16
16
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
@@ -36,11 +36,11 @@ require('webpackbar');
|
|
|
36
36
|
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
37
37
|
require('@babel/runtime-corejs3/helpers/createClass');
|
|
38
38
|
require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
39
|
-
require('./create-postcss-config-
|
|
39
|
+
require('./create-postcss-config-91c09596.cjs.prod.js');
|
|
40
40
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
41
|
-
require('./package-
|
|
41
|
+
require('./package-e1f7242c.cjs.prod.js');
|
|
42
42
|
require('./has-jsx-runtime-c3202df5.cjs.prod.js');
|
|
43
|
-
require('./optimizations-
|
|
43
|
+
require('./optimizations-fb93514f.cjs.prod.js');
|
|
44
44
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
45
45
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
46
46
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
@@ -103,18 +103,17 @@ const createWebpackDevServerConfig = async _ref => {
|
|
|
103
103
|
https: false,
|
|
104
104
|
port,
|
|
105
105
|
setupMiddlewares(middlewares, devServer) {
|
|
106
|
-
var _devServer$app;
|
|
107
106
|
if (!devServer) {
|
|
108
107
|
throw new Error('webpack-dev-server is not defined');
|
|
109
108
|
}
|
|
110
|
-
|
|
109
|
+
devServer.app?.use(mcDevAuthentication.createMcDevAuthenticationMiddleware(applicationConfig$1));
|
|
111
110
|
return middlewares;
|
|
112
111
|
}
|
|
113
112
|
};
|
|
114
113
|
};
|
|
115
114
|
|
|
116
115
|
async function run() {
|
|
117
|
-
var
|
|
116
|
+
var _context;
|
|
118
117
|
const useYarn = doesFileExist.doesFileExist(paths.paths.yarnLockFile);
|
|
119
118
|
const isInteractive = process.stdout.isTTY;
|
|
120
119
|
|
|
@@ -158,7 +157,7 @@ async function run() {
|
|
|
158
157
|
// Serve webpack assets generated by the compiler over a web sever.
|
|
159
158
|
const serverConfig = await createWebpackDevServerConfig({
|
|
160
159
|
port,
|
|
161
|
-
publicPath:
|
|
160
|
+
publicPath: config.output?.publicPath
|
|
162
161
|
});
|
|
163
162
|
const devServer = new WebpackDevServer__default["default"](serverConfig, compiler);
|
|
164
163
|
await devServer.start();
|
|
@@ -9,8 +9,8 @@ var openBrowser = require('react-dev-utils/openBrowser');
|
|
|
9
9
|
var WebpackDevServerUtils = require('react-dev-utils/WebpackDevServerUtils');
|
|
10
10
|
var webpack = require('webpack');
|
|
11
11
|
var WebpackDevServer = require('webpack-dev-server');
|
|
12
|
-
var createWebpackConfigForDevelopment = require('./create-webpack-config-for-development-
|
|
13
|
-
var paths = require('./paths-
|
|
12
|
+
var createWebpackConfigForDevelopment = require('./create-webpack-config-for-development-488742b2.cjs.dev.js');
|
|
13
|
+
var paths = require('./paths-b76fc753.cjs.dev.js');
|
|
14
14
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
15
15
|
var mcDevAuthentication = require('@commercetools-frontend/mc-dev-authentication');
|
|
16
16
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
@@ -36,11 +36,11 @@ require('webpackbar');
|
|
|
36
36
|
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
37
37
|
require('@babel/runtime-corejs3/helpers/createClass');
|
|
38
38
|
require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
39
|
-
require('./create-postcss-config-
|
|
39
|
+
require('./create-postcss-config-381b636b.cjs.dev.js');
|
|
40
40
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
41
|
-
require('./package-
|
|
41
|
+
require('./package-d8b1f4c0.cjs.dev.js');
|
|
42
42
|
require('./has-jsx-runtime-aa5d21ee.cjs.dev.js');
|
|
43
|
-
require('./optimizations-
|
|
43
|
+
require('./optimizations-7789145e.cjs.dev.js');
|
|
44
44
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
45
45
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
46
46
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
@@ -103,18 +103,17 @@ const createWebpackDevServerConfig = async _ref => {
|
|
|
103
103
|
https: false,
|
|
104
104
|
port,
|
|
105
105
|
setupMiddlewares(middlewares, devServer) {
|
|
106
|
-
var _devServer$app;
|
|
107
106
|
if (!devServer) {
|
|
108
107
|
throw new Error('webpack-dev-server is not defined');
|
|
109
108
|
}
|
|
110
|
-
|
|
109
|
+
devServer.app?.use(mcDevAuthentication.createMcDevAuthenticationMiddleware(applicationConfig$1));
|
|
111
110
|
return middlewares;
|
|
112
111
|
}
|
|
113
112
|
};
|
|
114
113
|
};
|
|
115
114
|
|
|
116
115
|
async function run() {
|
|
117
|
-
var
|
|
116
|
+
var _context;
|
|
118
117
|
const useYarn = doesFileExist.doesFileExist(paths.paths.yarnLockFile);
|
|
119
118
|
const isInteractive = process.stdout.isTTY;
|
|
120
119
|
|
|
@@ -158,7 +157,7 @@ async function run() {
|
|
|
158
157
|
// Serve webpack assets generated by the compiler over a web sever.
|
|
159
158
|
const serverConfig = await createWebpackDevServerConfig({
|
|
160
159
|
port,
|
|
161
|
-
publicPath:
|
|
160
|
+
publicPath: config.output?.publicPath
|
|
162
161
|
});
|
|
163
162
|
const devServer = new WebpackDevServer__default["default"](serverConfig, compiler);
|
|
164
163
|
await devServer.start();
|
|
@@ -7,8 +7,8 @@ import openBrowser from 'react-dev-utils/openBrowser';
|
|
|
7
7
|
import { choosePort, prepareUrls, createCompiler } from 'react-dev-utils/WebpackDevServerUtils';
|
|
8
8
|
import webpack from 'webpack';
|
|
9
9
|
import WebpackDevServer from 'webpack-dev-server';
|
|
10
|
-
import { c as createWebpackConfigForDevelopment } from './create-webpack-config-for-development-
|
|
11
|
-
import { p as paths } from './paths-
|
|
10
|
+
import { c as createWebpackConfigForDevelopment } from './create-webpack-config-for-development-df3f7f7f.esm.js';
|
|
11
|
+
import { p as paths } from './paths-39f22b8b.esm.js';
|
|
12
12
|
import { processConfig } from '@commercetools-frontend/application-config';
|
|
13
13
|
import { createMcDevAuthenticationMiddleware } from '@commercetools-frontend/mc-dev-authentication';
|
|
14
14
|
import { processHeaders } from '@commercetools-frontend/mc-html-template';
|
|
@@ -34,11 +34,11 @@ import 'webpackbar';
|
|
|
34
34
|
import '@babel/runtime-corejs3/helpers/classCallCheck';
|
|
35
35
|
import '@babel/runtime-corejs3/helpers/createClass';
|
|
36
36
|
import '@babel/runtime-corejs3/core-js-stable/object/assign';
|
|
37
|
-
import './create-postcss-config-
|
|
37
|
+
import './create-postcss-config-0a86560d.esm.js';
|
|
38
38
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
39
|
-
import './package-
|
|
39
|
+
import './package-a34835d9.esm.js';
|
|
40
40
|
import './has-jsx-runtime-e3ecb09b.esm.js';
|
|
41
|
-
import './optimizations-
|
|
41
|
+
import './optimizations-bf991634.esm.js';
|
|
42
42
|
import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
|
43
43
|
import '@babel/runtime-corejs3/core-js-stable/object/entries';
|
|
44
44
|
import '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
@@ -90,18 +90,17 @@ const createWebpackDevServerConfig = async _ref => {
|
|
|
90
90
|
https: false,
|
|
91
91
|
port,
|
|
92
92
|
setupMiddlewares(middlewares, devServer) {
|
|
93
|
-
var _devServer$app;
|
|
94
93
|
if (!devServer) {
|
|
95
94
|
throw new Error('webpack-dev-server is not defined');
|
|
96
95
|
}
|
|
97
|
-
|
|
96
|
+
devServer.app?.use(createMcDevAuthenticationMiddleware(applicationConfig));
|
|
98
97
|
return middlewares;
|
|
99
98
|
}
|
|
100
99
|
};
|
|
101
100
|
};
|
|
102
101
|
|
|
103
102
|
async function run() {
|
|
104
|
-
var
|
|
103
|
+
var _context;
|
|
105
104
|
const useYarn = doesFileExist(paths.yarnLockFile);
|
|
106
105
|
const isInteractive = process.stdout.isTTY;
|
|
107
106
|
|
|
@@ -145,7 +144,7 @@ async function run() {
|
|
|
145
144
|
// Serve webpack assets generated by the compiler over a web sever.
|
|
146
145
|
const serverConfig = await createWebpackDevServerConfig({
|
|
147
146
|
port,
|
|
148
|
-
publicPath:
|
|
147
|
+
publicPath: config.output?.publicPath
|
|
149
148
|
});
|
|
150
149
|
const devServer = new WebpackDevServer(serverConfig, compiler);
|
|
151
150
|
await devServer.start();
|
|
@@ -10,12 +10,11 @@ var vite = require('vite');
|
|
|
10
10
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
11
11
|
var assets = require('@commercetools-frontend/assets');
|
|
12
12
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
13
|
-
var paths = require('./paths-
|
|
13
|
+
var paths = require('./paths-b76fc753.cjs.dev.js');
|
|
14
14
|
var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
15
15
|
var mcDevAuthentication = require('@commercetools-frontend/mc-dev-authentication');
|
|
16
|
-
var vitePluginSvgr = require('./vite-plugin-svgr-
|
|
16
|
+
var vitePluginSvgr = require('./vite-plugin-svgr-7d06f400.cjs.dev.js');
|
|
17
17
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
18
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
19
18
|
require('fs');
|
|
20
19
|
require('./does-file-exist-eb86baca.cjs.dev.js');
|
|
21
20
|
require('node:fs');
|
|
@@ -95,7 +94,7 @@ async function run() {
|
|
|
95
94
|
const html = mcHtmlTemplate.generateTemplate({
|
|
96
95
|
// Define the module entry point (path relative to the `/public` folder).
|
|
97
96
|
// NOTE: that this is different from the production configuration.
|
|
98
|
-
scriptImports: [
|
|
97
|
+
scriptImports: [`<script type="module" src="/../${appEntryPoint}" defer></script>`]
|
|
99
98
|
});
|
|
100
99
|
// Write `index.html` (template) into the `/public` folder.
|
|
101
100
|
fs__default["default"].writeFileSync(paths.paths.appIndexHtml, html, {
|
|
@@ -10,12 +10,11 @@ var vite = require('vite');
|
|
|
10
10
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
11
11
|
var assets = require('@commercetools-frontend/assets');
|
|
12
12
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
13
|
-
var paths = require('./paths-
|
|
13
|
+
var paths = require('./paths-7768b440.cjs.prod.js');
|
|
14
14
|
var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
15
15
|
var mcDevAuthentication = require('@commercetools-frontend/mc-dev-authentication');
|
|
16
|
-
var vitePluginSvgr = require('./vite-plugin-svgr-
|
|
16
|
+
var vitePluginSvgr = require('./vite-plugin-svgr-4034a834.cjs.prod.js');
|
|
17
17
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
18
|
-
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
19
18
|
require('fs');
|
|
20
19
|
require('./does-file-exist-be53305d.cjs.prod.js');
|
|
21
20
|
require('node:fs');
|
|
@@ -95,7 +94,7 @@ async function run() {
|
|
|
95
94
|
const html = mcHtmlTemplate.generateTemplate({
|
|
96
95
|
// Define the module entry point (path relative to the `/public` folder).
|
|
97
96
|
// NOTE: that this is different from the production configuration.
|
|
98
|
-
scriptImports: [
|
|
97
|
+
scriptImports: [`<script type="module" src="/../${appEntryPoint}" defer></script>`]
|
|
99
98
|
});
|
|
100
99
|
// Write `index.html` (template) into the `/public` folder.
|
|
101
100
|
fs__default["default"].writeFileSync(paths.paths.appIndexHtml, html, {
|
|
@@ -8,12 +8,11 @@ import { createServer } from 'vite';
|
|
|
8
8
|
import { processConfig } from '@commercetools-frontend/application-config';
|
|
9
9
|
import { packageLocation } from '@commercetools-frontend/assets';
|
|
10
10
|
import { processHeaders, replaceHtmlPlaceholders, generateTemplate } from '@commercetools-frontend/mc-html-template';
|
|
11
|
-
import { p as paths } from './paths-
|
|
11
|
+
import { p as paths } from './paths-39f22b8b.esm.js';
|
|
12
12
|
import _Object$assign from '@babel/runtime-corejs3/core-js-stable/object/assign';
|
|
13
13
|
import { createMcDevAuthenticationMiddleware } from '@commercetools-frontend/mc-dev-authentication';
|
|
14
|
-
import { v as vitePluginSvgr } from './vite-plugin-svgr-
|
|
14
|
+
import { v as vitePluginSvgr } from './vite-plugin-svgr-de6ee7da.esm.js';
|
|
15
15
|
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
16
|
-
import '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
17
16
|
import 'fs';
|
|
18
17
|
import './does-file-exist-32618334.esm.js';
|
|
19
18
|
import 'node:fs';
|
|
@@ -83,7 +82,7 @@ async function run() {
|
|
|
83
82
|
const html = generateTemplate({
|
|
84
83
|
// Define the module entry point (path relative to the `/public` folder).
|
|
85
84
|
// NOTE: that this is different from the production configuration.
|
|
86
|
-
scriptImports: [
|
|
85
|
+
scriptImports: [`<script type="module" src="/../${appEntryPoint}" defer></script>`]
|
|
87
86
|
});
|
|
88
87
|
// Write `index.html` (template) into the `/public` folder.
|
|
89
88
|
fs.writeFileSync(paths.appIndexHtml, html, {
|