@commercetools-frontend/mc-scripts 27.4.0 → 27.4.2
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 +12 -9
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +12 -9
- package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +12 -9
- package/dist/{build-538589f8.esm.js → build-2b934f0c.esm.js} +4 -5
- package/dist/{build-4bec1911.cjs.dev.js → build-b59ae957.cjs.dev.js} +4 -5
- package/dist/{build-4947dde1.cjs.prod.js → build-cebaad1c.cjs.prod.js} +4 -5
- package/dist/{build-vite-8cae71a0.esm.js → build-vite-1526e4f8.esm.js} +109 -20
- package/dist/{build-vite-837e7c94.cjs.dev.js → build-vite-2fb9320e.cjs.dev.js} +118 -20
- package/dist/{build-vite-b007241b.cjs.prod.js → build-vite-71889a4a.cjs.prod.js} +118 -20
- package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
- package/dist/{config-sync-847ba904.esm.js → config-sync-3be9dd65.esm.js} +4 -4
- package/dist/{config-sync-05b6c655.cjs.prod.js → config-sync-6707192b.cjs.prod.js} +4 -4
- package/dist/{config-sync-1b1cd062.cjs.dev.js → config-sync-7bd473d2.cjs.dev.js} +4 -4
- package/dist/{config-sync-ci-a466eac1.cjs.dev.js → config-sync-ci-3fabd319.cjs.dev.js} +4 -4
- package/dist/{config-sync-ci-e23e1a0c.esm.js → config-sync-ci-ceed6879.esm.js} +4 -4
- package/dist/{config-sync-ci-37b018f4.cjs.prod.js → config-sync-ci-eaa2c74c.cjs.prod.js} +4 -4
- package/dist/{config-sync-helpers-96a4e385.cjs.prod.js → config-sync-helpers-2f9ce5e7.cjs.prod.js} +1 -1
- package/dist/{config-sync-helpers-328a753c.esm.js → config-sync-helpers-4c1e6ef7.esm.js} +1 -1
- package/dist/{config-sync-helpers-9358fd5c.cjs.dev.js → config-sync-helpers-9e7101ca.cjs.dev.js} +1 -1
- package/dist/{create-postcss-config-21beaad3.esm.js → create-postcss-config-040fa794.esm.js} +1 -1
- package/dist/{create-postcss-config-5449cc23.cjs.dev.js → create-postcss-config-7cebb3e2.cjs.dev.js} +1 -1
- package/dist/{create-postcss-config-f816432f.cjs.prod.js → create-postcss-config-82c6d99e.cjs.prod.js} +1 -1
- package/dist/{create-webpack-config-for-development-c814a86b.esm.js → create-webpack-config-for-development-5fba3c63.esm.js} +2 -3
- package/dist/{create-webpack-config-for-development-c1bbf893.cjs.dev.js → create-webpack-config-for-development-835be72f.cjs.dev.js} +4 -5
- package/dist/{create-webpack-config-for-development-4aef0f7d.cjs.prod.js → create-webpack-config-for-development-9d0b5ccd.cjs.prod.js} +4 -5
- package/dist/{create-webpack-config-for-production-1ce27fee.esm.js → create-webpack-config-for-production-1c770191.esm.js} +2 -3
- package/dist/{create-webpack-config-for-production-9d3513bb.cjs.prod.js → create-webpack-config-for-production-8c3f894b.cjs.prod.js} +4 -5
- package/dist/{create-webpack-config-for-production-13725420.cjs.dev.js → create-webpack-config-for-production-ffeb4a22.cjs.dev.js} +4 -5
- package/dist/{credentials-storage-fcc77fb6.esm.js → credentials-storage-67deadc3.esm.js} +14 -10
- package/dist/{credentials-storage-6d592cd6.cjs.prod.js → credentials-storage-ea1c16dc.cjs.prod.js} +14 -10
- package/dist/{credentials-storage-c4c5980e.cjs.dev.js → credentials-storage-fd195144.cjs.dev.js} +14 -10
- package/dist/{deployment-previews-set-eb7f91c7.cjs.dev.js → deployment-previews-set-68c37d9d.cjs.dev.js} +3 -3
- package/dist/{deployment-previews-set-3e3dd21a.cjs.prod.js → deployment-previews-set-6dd7e367.cjs.prod.js} +3 -3
- package/dist/{deployment-previews-set-e4851a8c.esm.js → deployment-previews-set-add2d9c6.esm.js} +3 -3
- package/dist/{graphql-requests-85c0591e.cjs.dev.js → graphql-requests-24e04c13.cjs.dev.js} +2 -2
- package/dist/{graphql-requests-3cf2d374.cjs.prod.js → graphql-requests-5e31d639.cjs.prod.js} +2 -2
- package/dist/{graphql-requests-c17c5c77.esm.js → graphql-requests-c07e7b8f.esm.js} +2 -2
- package/dist/{login-2d035398.cjs.dev.js → login-a1ad5f07.cjs.dev.js} +2 -2
- package/dist/{login-69b7ff2d.esm.js → login-af2522fd.esm.js} +2 -2
- package/dist/{login-d3937863.cjs.prod.js → login-c05816f1.cjs.prod.js} +2 -2
- package/dist/{optimizations-bf991634.esm.js → optimizations-54382f7b.esm.js} +24 -9
- package/dist/{optimizations-fb93514f.cjs.prod.js → optimizations-56be74d6.cjs.dev.js} +24 -9
- package/dist/{optimizations-7789145e.cjs.dev.js → optimizations-da5a0cfa.cjs.prod.js} +24 -9
- package/dist/{package-6d9b67e1.esm.js → package-14789720.esm.js} +11 -12
- package/dist/{package-21b8dea0.cjs.dev.js → package-6dcc2c4f.cjs.dev.js} +11 -12
- package/dist/{package-bcffa3f9.cjs.prod.js → package-d75d6b9f.cjs.prod.js} +11 -12
- package/dist/serve-4062385a.esm.js +70 -0
- package/dist/serve-5a455e72.cjs.prod.js +81 -0
- package/dist/serve-b9ac0b0c.cjs.dev.js +81 -0
- package/dist/{start-936260c4.esm.js → start-c9b32028.esm.js} +4 -5
- package/dist/{start-47888d2b.cjs.prod.js → start-f52d8e68.cjs.prod.js} +4 -5
- package/dist/{start-3114422d.cjs.dev.js → start-f93cb36f.cjs.dev.js} +4 -5
- package/package.json +11 -12
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +5 -6
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +5 -6
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +5 -6
- package/dist/has-jsx-runtime-aa5d21ee.cjs.dev.js +0 -15
- package/dist/has-jsx-runtime-c3202df5.cjs.prod.js +0 -15
- package/dist/has-jsx-runtime-e3ecb09b.esm.js +0 -13
- package/dist/serve-38456e1b.cjs.dev.js +0 -67
- package/dist/serve-be1f9439.esm.js +0 -57
- package/dist/serve-cc4a766d.cjs.prod.js +0 -67
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var pkgJson = {
|
|
2
2
|
name: "@commercetools-frontend/mc-scripts",
|
|
3
|
-
version: "27.4.
|
|
3
|
+
version: "27.4.2",
|
|
4
4
|
description: "Configuration and scripts for developing a MC application",
|
|
5
5
|
bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
repository: {
|
|
@@ -61,13 +61,13 @@ var pkgJson = {
|
|
|
61
61
|
"@babel/plugin-proposal-do-expressions": "^7.22.5",
|
|
62
62
|
"@babel/runtime": "^7.22.15",
|
|
63
63
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
64
|
-
"@commercetools-frontend/application-components": "27.4.
|
|
65
|
-
"@commercetools-frontend/application-config": "27.4.
|
|
66
|
-
"@commercetools-frontend/assets": "27.4.
|
|
67
|
-
"@commercetools-frontend/babel-preset-mc-app": "27.4.
|
|
68
|
-
"@commercetools-frontend/constants": "27.4.
|
|
69
|
-
"@commercetools-frontend/mc-dev-authentication": "27.4.
|
|
70
|
-
"@commercetools-frontend/mc-html-template": "27.4.
|
|
64
|
+
"@commercetools-frontend/application-components": "27.4.2",
|
|
65
|
+
"@commercetools-frontend/application-config": "27.4.2",
|
|
66
|
+
"@commercetools-frontend/assets": "27.4.2",
|
|
67
|
+
"@commercetools-frontend/babel-preset-mc-app": "27.4.2",
|
|
68
|
+
"@commercetools-frontend/constants": "27.4.2",
|
|
69
|
+
"@commercetools-frontend/mc-dev-authentication": "27.4.2",
|
|
70
|
+
"@commercetools-frontend/mc-html-template": "27.4.2",
|
|
71
71
|
"@commercetools/http-user-agent": "3.0.0",
|
|
72
72
|
"@emotion/babel-plugin": "^11.13.5",
|
|
73
73
|
"@formatjs/cli-lib": "^6.3.8",
|
|
@@ -102,7 +102,7 @@ var pkgJson = {
|
|
|
102
102
|
"html-webpack-plugin": "5.6.3",
|
|
103
103
|
"json-loader": "0.5.7",
|
|
104
104
|
"jwt-decode": "3.1.2",
|
|
105
|
-
lodash: "4.
|
|
105
|
+
lodash: "4.18.1",
|
|
106
106
|
"mini-css-extract-plugin": "2.9.4",
|
|
107
107
|
moment: "^2.29.4",
|
|
108
108
|
"moment-locales-webpack-plugin": "1.2.0",
|
|
@@ -120,15 +120,15 @@ var pkgJson = {
|
|
|
120
120
|
"react-dev-utils": "12.0.1",
|
|
121
121
|
"react-refresh": "0.17.0",
|
|
122
122
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
123
|
-
"serve-handler": "6.1.6",
|
|
124
123
|
sharp: "^0.34.1",
|
|
125
124
|
shelljs: "0.10.0",
|
|
125
|
+
sirv: "^3.0.2",
|
|
126
126
|
"style-loader": "3.3.4",
|
|
127
127
|
"svg-url-loader": "7.1.1",
|
|
128
128
|
"terser-webpack-plugin": "5.3.14",
|
|
129
129
|
"thread-loader": "3.0.4",
|
|
130
130
|
url: "^0.11.0",
|
|
131
|
-
vite: "~6.4.
|
|
131
|
+
vite: "~6.4.2",
|
|
132
132
|
"vite-bundle-analyzer": "0.23.0",
|
|
133
133
|
webpack: "5.105.1",
|
|
134
134
|
"webpack-bundle-analyzer": "4.10.2",
|
|
@@ -143,7 +143,6 @@ var pkgJson = {
|
|
|
143
143
|
"@types/moment-locales-webpack-plugin": "^1.2.3",
|
|
144
144
|
"@types/node-fetch": "2.6.13",
|
|
145
145
|
"@types/prettier": "2.7.3",
|
|
146
|
-
"@types/serve-handler": "^6.1.1",
|
|
147
146
|
"jest-mock": "29.7.0",
|
|
148
147
|
memfs: "^4.8.2",
|
|
149
148
|
msw: "^1.3.5",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var pkgJson = {
|
|
4
4
|
name: "@commercetools-frontend/mc-scripts",
|
|
5
|
-
version: "27.4.
|
|
5
|
+
version: "27.4.2",
|
|
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": "27.4.
|
|
67
|
-
"@commercetools-frontend/application-config": "27.4.
|
|
68
|
-
"@commercetools-frontend/assets": "27.4.
|
|
69
|
-
"@commercetools-frontend/babel-preset-mc-app": "27.4.
|
|
70
|
-
"@commercetools-frontend/constants": "27.4.
|
|
71
|
-
"@commercetools-frontend/mc-dev-authentication": "27.4.
|
|
72
|
-
"@commercetools-frontend/mc-html-template": "27.4.
|
|
66
|
+
"@commercetools-frontend/application-components": "27.4.2",
|
|
67
|
+
"@commercetools-frontend/application-config": "27.4.2",
|
|
68
|
+
"@commercetools-frontend/assets": "27.4.2",
|
|
69
|
+
"@commercetools-frontend/babel-preset-mc-app": "27.4.2",
|
|
70
|
+
"@commercetools-frontend/constants": "27.4.2",
|
|
71
|
+
"@commercetools-frontend/mc-dev-authentication": "27.4.2",
|
|
72
|
+
"@commercetools-frontend/mc-html-template": "27.4.2",
|
|
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",
|
|
@@ -104,7 +104,7 @@ var pkgJson = {
|
|
|
104
104
|
"html-webpack-plugin": "5.6.3",
|
|
105
105
|
"json-loader": "0.5.7",
|
|
106
106
|
"jwt-decode": "3.1.2",
|
|
107
|
-
lodash: "4.
|
|
107
|
+
lodash: "4.18.1",
|
|
108
108
|
"mini-css-extract-plugin": "2.9.4",
|
|
109
109
|
moment: "^2.29.4",
|
|
110
110
|
"moment-locales-webpack-plugin": "1.2.0",
|
|
@@ -122,15 +122,15 @@ var pkgJson = {
|
|
|
122
122
|
"react-dev-utils": "12.0.1",
|
|
123
123
|
"react-refresh": "0.17.0",
|
|
124
124
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
125
|
-
"serve-handler": "6.1.6",
|
|
126
125
|
sharp: "^0.34.1",
|
|
127
126
|
shelljs: "0.10.0",
|
|
127
|
+
sirv: "^3.0.2",
|
|
128
128
|
"style-loader": "3.3.4",
|
|
129
129
|
"svg-url-loader": "7.1.1",
|
|
130
130
|
"terser-webpack-plugin": "5.3.14",
|
|
131
131
|
"thread-loader": "3.0.4",
|
|
132
132
|
url: "^0.11.0",
|
|
133
|
-
vite: "~6.4.
|
|
133
|
+
vite: "~6.4.2",
|
|
134
134
|
"vite-bundle-analyzer": "0.23.0",
|
|
135
135
|
webpack: "5.105.1",
|
|
136
136
|
"webpack-bundle-analyzer": "4.10.2",
|
|
@@ -145,7 +145,6 @@ var pkgJson = {
|
|
|
145
145
|
"@types/moment-locales-webpack-plugin": "^1.2.3",
|
|
146
146
|
"@types/node-fetch": "2.6.13",
|
|
147
147
|
"@types/prettier": "2.7.3",
|
|
148
|
-
"@types/serve-handler": "^6.1.1",
|
|
149
148
|
"jest-mock": "29.7.0",
|
|
150
149
|
memfs: "^4.8.2",
|
|
151
150
|
msw: "^1.3.5",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var pkgJson = {
|
|
4
4
|
name: "@commercetools-frontend/mc-scripts",
|
|
5
|
-
version: "27.4.
|
|
5
|
+
version: "27.4.2",
|
|
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": "27.4.
|
|
67
|
-
"@commercetools-frontend/application-config": "27.4.
|
|
68
|
-
"@commercetools-frontend/assets": "27.4.
|
|
69
|
-
"@commercetools-frontend/babel-preset-mc-app": "27.4.
|
|
70
|
-
"@commercetools-frontend/constants": "27.4.
|
|
71
|
-
"@commercetools-frontend/mc-dev-authentication": "27.4.
|
|
72
|
-
"@commercetools-frontend/mc-html-template": "27.4.
|
|
66
|
+
"@commercetools-frontend/application-components": "27.4.2",
|
|
67
|
+
"@commercetools-frontend/application-config": "27.4.2",
|
|
68
|
+
"@commercetools-frontend/assets": "27.4.2",
|
|
69
|
+
"@commercetools-frontend/babel-preset-mc-app": "27.4.2",
|
|
70
|
+
"@commercetools-frontend/constants": "27.4.2",
|
|
71
|
+
"@commercetools-frontend/mc-dev-authentication": "27.4.2",
|
|
72
|
+
"@commercetools-frontend/mc-html-template": "27.4.2",
|
|
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",
|
|
@@ -104,7 +104,7 @@ var pkgJson = {
|
|
|
104
104
|
"html-webpack-plugin": "5.6.3",
|
|
105
105
|
"json-loader": "0.5.7",
|
|
106
106
|
"jwt-decode": "3.1.2",
|
|
107
|
-
lodash: "4.
|
|
107
|
+
lodash: "4.18.1",
|
|
108
108
|
"mini-css-extract-plugin": "2.9.4",
|
|
109
109
|
moment: "^2.29.4",
|
|
110
110
|
"moment-locales-webpack-plugin": "1.2.0",
|
|
@@ -122,15 +122,15 @@ var pkgJson = {
|
|
|
122
122
|
"react-dev-utils": "12.0.1",
|
|
123
123
|
"react-refresh": "0.17.0",
|
|
124
124
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
125
|
-
"serve-handler": "6.1.6",
|
|
126
125
|
sharp: "^0.34.1",
|
|
127
126
|
shelljs: "0.10.0",
|
|
127
|
+
sirv: "^3.0.2",
|
|
128
128
|
"style-loader": "3.3.4",
|
|
129
129
|
"svg-url-loader": "7.1.1",
|
|
130
130
|
"terser-webpack-plugin": "5.3.14",
|
|
131
131
|
"thread-loader": "3.0.4",
|
|
132
132
|
url: "^0.11.0",
|
|
133
|
-
vite: "~6.4.
|
|
133
|
+
vite: "~6.4.2",
|
|
134
134
|
"vite-bundle-analyzer": "0.23.0",
|
|
135
135
|
webpack: "5.105.1",
|
|
136
136
|
"webpack-bundle-analyzer": "4.10.2",
|
|
@@ -145,7 +145,6 @@ var pkgJson = {
|
|
|
145
145
|
"@types/moment-locales-webpack-plugin": "^1.2.3",
|
|
146
146
|
"@types/node-fetch": "2.6.13",
|
|
147
147
|
"@types/prettier": "2.7.3",
|
|
148
|
-
"@types/serve-handler": "^6.1.1",
|
|
149
148
|
"jest-mock": "29.7.0",
|
|
150
149
|
memfs: "^4.8.2",
|
|
151
150
|
msw: "^1.3.5",
|
|
@@ -0,0 +1,70 @@
|
|
|
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';
|
|
3
|
+
import _URL from '@babel/runtime-corejs3/core-js-stable/url';
|
|
4
|
+
import _Promise from '@babel/runtime-corejs3/core-js-stable/promise';
|
|
5
|
+
import http from 'http';
|
|
6
|
+
import sirv from 'sirv';
|
|
7
|
+
import { processConfig } from '@commercetools-frontend/application-config';
|
|
8
|
+
import { p as paths } from './paths-39f22b8b.esm.js';
|
|
9
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
10
|
+
import 'fs';
|
|
11
|
+
import 'path';
|
|
12
|
+
import './does-file-exist-32618334.esm.js';
|
|
13
|
+
import 'node:fs';
|
|
14
|
+
|
|
15
|
+
const DEFAULT_PORT = 3001;
|
|
16
|
+
async function run() {
|
|
17
|
+
var _context;
|
|
18
|
+
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
19
|
+
const port = options.port ?? DEFAULT_PORT;
|
|
20
|
+
const publicPath = options.publicPath ?? paths.appBuild;
|
|
21
|
+
const applicationConfig = options.applicationConfig ?? (await processConfig());
|
|
22
|
+
const isLocalMcApi = _startsWithInstanceProperty(_context = applicationConfig.env.mcApiUrl).call(_context, 'http://localhost');
|
|
23
|
+
|
|
24
|
+
// `single: true` gives us the SPA fallback — any unmatched path is served as
|
|
25
|
+
// the root `index.html`. This replaces the complex glob workaround that
|
|
26
|
+
// `serve-handler` needed because of vercel/serve-handler#71.
|
|
27
|
+
const staticHandler = sirv(publicPath, {
|
|
28
|
+
single: true,
|
|
29
|
+
etag: true
|
|
30
|
+
});
|
|
31
|
+
const server = http.createServer((request, response) => {
|
|
32
|
+
var _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context0, _context1;
|
|
33
|
+
// Localhost-only: inline replacement for the login/logout UI that
|
|
34
|
+
// `mc-dev-authentication` used to ship as static HTML (#3734).
|
|
35
|
+
if (isLocalMcApi && ((_context2 = request.url) == null ? void 0 : _bindInstanceProperty(_context3 = Function.call).call(_context3, _startsWithInstanceProperty(_context2), _context2))?.('/login/authorize')) {
|
|
36
|
+
const redirectTo = new _URL(request.url, applicationConfig.env.mcApiUrl);
|
|
37
|
+
response.writeHead(301, {
|
|
38
|
+
Location: redirectTo.toString()
|
|
39
|
+
}).end();
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (isLocalMcApi && ((_context4 = request.url) == null ? void 0 : _bindInstanceProperty(_context5 = Function.call).call(_context5, _startsWithInstanceProperty(_context4), _context4))?.('/logout')) {
|
|
43
|
+
response.end('Please clear your session storage.');
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Preserve the pre-swap contract: any other `/login*` or `/logout*`
|
|
48
|
+
// request (bare `/login`, non-localhost auth callbacks, etc.) must NOT
|
|
49
|
+
// fall back to the SPA — that would mask OAuth callback
|
|
50
|
+
// misconfigurations by rendering the app on a URL the backend owns.
|
|
51
|
+
if (((_context6 = request.url) == null ? void 0 : _bindInstanceProperty(_context7 = Function.call).call(_context7, _startsWithInstanceProperty(_context6), _context6))?.('/login') || ((_context8 = request.url) == null ? void 0 : _bindInstanceProperty(_context9 = Function.call).call(_context9, _startsWithInstanceProperty(_context8), _context8))?.('/logout')) {
|
|
52
|
+
response.writeHead(404).end();
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Absorb `/favicon*` variants (e.g. `/favicon.ico`, `/favicon-32x32.png`)
|
|
57
|
+
// into the single PNG the app ships.
|
|
58
|
+
if (((_context0 = request.url) == null ? void 0 : _bindInstanceProperty(_context1 = Function.call).call(_context1, _startsWithInstanceProperty(_context0), _context0))?.('/favicon')) {
|
|
59
|
+
request.url = '/favicon.png';
|
|
60
|
+
}
|
|
61
|
+
staticHandler(request, response, () => {
|
|
62
|
+
response.writeHead(404).end();
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
return new _Promise(resolve => {
|
|
66
|
+
server.listen(port, () => resolve(server));
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export { run as default };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
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');
|
|
5
|
+
var _URL = require('@babel/runtime-corejs3/core-js-stable/url');
|
|
6
|
+
var _Promise = require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
7
|
+
var http = require('http');
|
|
8
|
+
var sirv = require('sirv');
|
|
9
|
+
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
10
|
+
var paths = require('./paths-7768b440.cjs.prod.js');
|
|
11
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
12
|
+
require('fs');
|
|
13
|
+
require('path');
|
|
14
|
+
require('./does-file-exist-be53305d.cjs.prod.js');
|
|
15
|
+
require('node:fs');
|
|
16
|
+
|
|
17
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
18
|
+
|
|
19
|
+
var _startsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_startsWithInstanceProperty);
|
|
20
|
+
var _bindInstanceProperty__default = /*#__PURE__*/_interopDefault(_bindInstanceProperty);
|
|
21
|
+
var _URL__default = /*#__PURE__*/_interopDefault(_URL);
|
|
22
|
+
var _Promise__default = /*#__PURE__*/_interopDefault(_Promise);
|
|
23
|
+
var http__default = /*#__PURE__*/_interopDefault(http);
|
|
24
|
+
var sirv__default = /*#__PURE__*/_interopDefault(sirv);
|
|
25
|
+
|
|
26
|
+
const DEFAULT_PORT = 3001;
|
|
27
|
+
async function run() {
|
|
28
|
+
var _context;
|
|
29
|
+
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
30
|
+
const port = options.port ?? DEFAULT_PORT;
|
|
31
|
+
const publicPath = options.publicPath ?? paths.paths.appBuild;
|
|
32
|
+
const applicationConfig$1 = options.applicationConfig ?? (await applicationConfig.processConfig());
|
|
33
|
+
const isLocalMcApi = _startsWithInstanceProperty__default["default"](_context = applicationConfig$1.env.mcApiUrl).call(_context, 'http://localhost');
|
|
34
|
+
|
|
35
|
+
// `single: true` gives us the SPA fallback — any unmatched path is served as
|
|
36
|
+
// the root `index.html`. This replaces the complex glob workaround that
|
|
37
|
+
// `serve-handler` needed because of vercel/serve-handler#71.
|
|
38
|
+
const staticHandler = sirv__default["default"](publicPath, {
|
|
39
|
+
single: true,
|
|
40
|
+
etag: true
|
|
41
|
+
});
|
|
42
|
+
const server = http__default["default"].createServer((request, response) => {
|
|
43
|
+
var _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context0, _context1;
|
|
44
|
+
// Localhost-only: inline replacement for the login/logout UI that
|
|
45
|
+
// `mc-dev-authentication` used to ship as static HTML (#3734).
|
|
46
|
+
if (isLocalMcApi && ((_context2 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context3 = Function.call).call(_context3, _startsWithInstanceProperty__default["default"](_context2), _context2))?.('/login/authorize')) {
|
|
47
|
+
const redirectTo = new _URL__default["default"](request.url, applicationConfig$1.env.mcApiUrl);
|
|
48
|
+
response.writeHead(301, {
|
|
49
|
+
Location: redirectTo.toString()
|
|
50
|
+
}).end();
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (isLocalMcApi && ((_context4 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context5 = Function.call).call(_context5, _startsWithInstanceProperty__default["default"](_context4), _context4))?.('/logout')) {
|
|
54
|
+
response.end('Please clear your session storage.');
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Preserve the pre-swap contract: any other `/login*` or `/logout*`
|
|
59
|
+
// request (bare `/login`, non-localhost auth callbacks, etc.) must NOT
|
|
60
|
+
// fall back to the SPA — that would mask OAuth callback
|
|
61
|
+
// misconfigurations by rendering the app on a URL the backend owns.
|
|
62
|
+
if (((_context6 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context7 = Function.call).call(_context7, _startsWithInstanceProperty__default["default"](_context6), _context6))?.('/login') || ((_context8 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context9 = Function.call).call(_context9, _startsWithInstanceProperty__default["default"](_context8), _context8))?.('/logout')) {
|
|
63
|
+
response.writeHead(404).end();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Absorb `/favicon*` variants (e.g. `/favicon.ico`, `/favicon-32x32.png`)
|
|
68
|
+
// into the single PNG the app ships.
|
|
69
|
+
if (((_context0 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context1 = Function.call).call(_context1, _startsWithInstanceProperty__default["default"](_context0), _context0))?.('/favicon')) {
|
|
70
|
+
request.url = '/favicon.png';
|
|
71
|
+
}
|
|
72
|
+
staticHandler(request, response, () => {
|
|
73
|
+
response.writeHead(404).end();
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
return new _Promise__default["default"](resolve => {
|
|
77
|
+
server.listen(port, () => resolve(server));
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
exports["default"] = run;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
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');
|
|
5
|
+
var _URL = require('@babel/runtime-corejs3/core-js-stable/url');
|
|
6
|
+
var _Promise = require('@babel/runtime-corejs3/core-js-stable/promise');
|
|
7
|
+
var http = require('http');
|
|
8
|
+
var sirv = require('sirv');
|
|
9
|
+
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
10
|
+
var paths = require('./paths-b76fc753.cjs.dev.js');
|
|
11
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
12
|
+
require('fs');
|
|
13
|
+
require('path');
|
|
14
|
+
require('./does-file-exist-eb86baca.cjs.dev.js');
|
|
15
|
+
require('node:fs');
|
|
16
|
+
|
|
17
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
18
|
+
|
|
19
|
+
var _startsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_startsWithInstanceProperty);
|
|
20
|
+
var _bindInstanceProperty__default = /*#__PURE__*/_interopDefault(_bindInstanceProperty);
|
|
21
|
+
var _URL__default = /*#__PURE__*/_interopDefault(_URL);
|
|
22
|
+
var _Promise__default = /*#__PURE__*/_interopDefault(_Promise);
|
|
23
|
+
var http__default = /*#__PURE__*/_interopDefault(http);
|
|
24
|
+
var sirv__default = /*#__PURE__*/_interopDefault(sirv);
|
|
25
|
+
|
|
26
|
+
const DEFAULT_PORT = 3001;
|
|
27
|
+
async function run() {
|
|
28
|
+
var _context;
|
|
29
|
+
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
30
|
+
const port = options.port ?? DEFAULT_PORT;
|
|
31
|
+
const publicPath = options.publicPath ?? paths.paths.appBuild;
|
|
32
|
+
const applicationConfig$1 = options.applicationConfig ?? (await applicationConfig.processConfig());
|
|
33
|
+
const isLocalMcApi = _startsWithInstanceProperty__default["default"](_context = applicationConfig$1.env.mcApiUrl).call(_context, 'http://localhost');
|
|
34
|
+
|
|
35
|
+
// `single: true` gives us the SPA fallback — any unmatched path is served as
|
|
36
|
+
// the root `index.html`. This replaces the complex glob workaround that
|
|
37
|
+
// `serve-handler` needed because of vercel/serve-handler#71.
|
|
38
|
+
const staticHandler = sirv__default["default"](publicPath, {
|
|
39
|
+
single: true,
|
|
40
|
+
etag: true
|
|
41
|
+
});
|
|
42
|
+
const server = http__default["default"].createServer((request, response) => {
|
|
43
|
+
var _context2, _context3, _context4, _context5, _context6, _context7, _context8, _context9, _context0, _context1;
|
|
44
|
+
// Localhost-only: inline replacement for the login/logout UI that
|
|
45
|
+
// `mc-dev-authentication` used to ship as static HTML (#3734).
|
|
46
|
+
if (isLocalMcApi && ((_context2 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context3 = Function.call).call(_context3, _startsWithInstanceProperty__default["default"](_context2), _context2))?.('/login/authorize')) {
|
|
47
|
+
const redirectTo = new _URL__default["default"](request.url, applicationConfig$1.env.mcApiUrl);
|
|
48
|
+
response.writeHead(301, {
|
|
49
|
+
Location: redirectTo.toString()
|
|
50
|
+
}).end();
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (isLocalMcApi && ((_context4 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context5 = Function.call).call(_context5, _startsWithInstanceProperty__default["default"](_context4), _context4))?.('/logout')) {
|
|
54
|
+
response.end('Please clear your session storage.');
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Preserve the pre-swap contract: any other `/login*` or `/logout*`
|
|
59
|
+
// request (bare `/login`, non-localhost auth callbacks, etc.) must NOT
|
|
60
|
+
// fall back to the SPA — that would mask OAuth callback
|
|
61
|
+
// misconfigurations by rendering the app on a URL the backend owns.
|
|
62
|
+
if (((_context6 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context7 = Function.call).call(_context7, _startsWithInstanceProperty__default["default"](_context6), _context6))?.('/login') || ((_context8 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context9 = Function.call).call(_context9, _startsWithInstanceProperty__default["default"](_context8), _context8))?.('/logout')) {
|
|
63
|
+
response.writeHead(404).end();
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// Absorb `/favicon*` variants (e.g. `/favicon.ico`, `/favicon-32x32.png`)
|
|
68
|
+
// into the single PNG the app ships.
|
|
69
|
+
if (((_context0 = request.url) == null ? void 0 : _bindInstanceProperty__default["default"](_context1 = Function.call).call(_context1, _startsWithInstanceProperty__default["default"](_context0), _context0))?.('/favicon')) {
|
|
70
|
+
request.url = '/favicon.png';
|
|
71
|
+
}
|
|
72
|
+
staticHandler(request, response, () => {
|
|
73
|
+
response.writeHead(404).end();
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
return new _Promise__default["default"](resolve => {
|
|
77
|
+
server.listen(port, () => resolve(server));
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
exports["default"] = run;
|
|
@@ -7,7 +7,7 @@ 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-
|
|
10
|
+
import { c as createWebpackConfigForDevelopment } from './create-webpack-config-for-development-5fba3c63.esm.js';
|
|
11
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';
|
|
@@ -34,11 +34,10 @@ 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-040fa794.esm.js';
|
|
38
38
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
39
|
-
import './package-
|
|
40
|
-
import './
|
|
41
|
-
import './optimizations-bf991634.esm.js';
|
|
39
|
+
import './package-14789720.esm.js';
|
|
40
|
+
import './optimizations-54382f7b.esm.js';
|
|
42
41
|
import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
|
43
42
|
import '@babel/runtime-corejs3/core-js-stable/object/entries';
|
|
44
43
|
import '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
@@ -9,7 +9,7 @@ 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-
|
|
12
|
+
var createWebpackConfigForDevelopment = require('./create-webpack-config-for-development-9d0b5ccd.cjs.prod.js');
|
|
13
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');
|
|
@@ -36,11 +36,10 @@ 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-82c6d99e.cjs.prod.js');
|
|
40
40
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
41
|
-
require('./package-
|
|
42
|
-
require('./
|
|
43
|
-
require('./optimizations-fb93514f.cjs.prod.js');
|
|
41
|
+
require('./package-d75d6b9f.cjs.prod.js');
|
|
42
|
+
require('./optimizations-da5a0cfa.cjs.prod.js');
|
|
44
43
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
45
44
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
46
45
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
@@ -9,7 +9,7 @@ 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-
|
|
12
|
+
var createWebpackConfigForDevelopment = require('./create-webpack-config-for-development-835be72f.cjs.dev.js');
|
|
13
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');
|
|
@@ -36,11 +36,10 @@ 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-7cebb3e2.cjs.dev.js');
|
|
40
40
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
41
|
-
require('./package-
|
|
42
|
-
require('./
|
|
43
|
-
require('./optimizations-7789145e.cjs.dev.js');
|
|
41
|
+
require('./package-6dcc2c4f.cjs.dev.js');
|
|
42
|
+
require('./optimizations-56be74d6.cjs.dev.js');
|
|
44
43
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
45
44
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
46
45
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/mc-scripts",
|
|
3
|
-
"version": "27.4.
|
|
3
|
+
"version": "27.4.2",
|
|
4
4
|
"description": "Configuration and scripts for developing a MC application",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
"@babel/plugin-proposal-do-expressions": "^7.22.5",
|
|
62
62
|
"@babel/runtime": "^7.22.15",
|
|
63
63
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
64
|
-
"@commercetools-frontend/application-components": "27.4.
|
|
65
|
-
"@commercetools-frontend/application-config": "27.4.
|
|
66
|
-
"@commercetools-frontend/assets": "27.4.
|
|
67
|
-
"@commercetools-frontend/babel-preset-mc-app": "27.4.
|
|
68
|
-
"@commercetools-frontend/constants": "27.4.
|
|
69
|
-
"@commercetools-frontend/mc-dev-authentication": "27.4.
|
|
70
|
-
"@commercetools-frontend/mc-html-template": "27.4.
|
|
64
|
+
"@commercetools-frontend/application-components": "27.4.2",
|
|
65
|
+
"@commercetools-frontend/application-config": "27.4.2",
|
|
66
|
+
"@commercetools-frontend/assets": "27.4.2",
|
|
67
|
+
"@commercetools-frontend/babel-preset-mc-app": "27.4.2",
|
|
68
|
+
"@commercetools-frontend/constants": "27.4.2",
|
|
69
|
+
"@commercetools-frontend/mc-dev-authentication": "27.4.2",
|
|
70
|
+
"@commercetools-frontend/mc-html-template": "27.4.2",
|
|
71
71
|
"@commercetools/http-user-agent": "3.0.0",
|
|
72
72
|
"@emotion/babel-plugin": "^11.13.5",
|
|
73
73
|
"@formatjs/cli-lib": "^6.3.8",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"html-webpack-plugin": "5.6.3",
|
|
103
103
|
"json-loader": "0.5.7",
|
|
104
104
|
"jwt-decode": "3.1.2",
|
|
105
|
-
"lodash": "4.
|
|
105
|
+
"lodash": "4.18.1",
|
|
106
106
|
"mini-css-extract-plugin": "2.9.4",
|
|
107
107
|
"moment": "^2.29.4",
|
|
108
108
|
"moment-locales-webpack-plugin": "1.2.0",
|
|
@@ -120,15 +120,15 @@
|
|
|
120
120
|
"react-dev-utils": "12.0.1",
|
|
121
121
|
"react-refresh": "0.17.0",
|
|
122
122
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
123
|
-
"serve-handler": "6.1.6",
|
|
124
123
|
"sharp": "^0.34.1",
|
|
125
124
|
"shelljs": "0.10.0",
|
|
125
|
+
"sirv": "^3.0.2",
|
|
126
126
|
"style-loader": "3.3.4",
|
|
127
127
|
"svg-url-loader": "7.1.1",
|
|
128
128
|
"terser-webpack-plugin": "5.3.14",
|
|
129
129
|
"thread-loader": "3.0.4",
|
|
130
130
|
"url": "^0.11.0",
|
|
131
|
-
"vite": "~6.4.
|
|
131
|
+
"vite": "~6.4.2",
|
|
132
132
|
"vite-bundle-analyzer": "0.23.0",
|
|
133
133
|
"webpack": "5.105.1",
|
|
134
134
|
"webpack-bundle-analyzer": "4.10.2",
|
|
@@ -143,7 +143,6 @@
|
|
|
143
143
|
"@types/moment-locales-webpack-plugin": "^1.2.3",
|
|
144
144
|
"@types/node-fetch": "2.6.13",
|
|
145
145
|
"@types/prettier": "2.7.3",
|
|
146
|
-
"@types/serve-handler": "^6.1.1",
|
|
147
146
|
"jest-mock": "29.7.0",
|
|
148
147
|
"memfs": "^4.8.2",
|
|
149
148
|
"msw": "^1.3.5",
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var createPostcssConfig = require('../../dist/create-postcss-config-
|
|
5
|
+
var createPostcssConfig = require('../../dist/create-postcss-config-7cebb3e2.cjs.dev.js');
|
|
6
6
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
7
7
|
require('path');
|
|
8
|
-
require('../../dist/package-
|
|
8
|
+
require('../../dist/package-6dcc2c4f.cjs.dev.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var createPostcssConfig = require('../../dist/create-postcss-config-
|
|
5
|
+
var createPostcssConfig = require('../../dist/create-postcss-config-82c6d99e.cjs.prod.js');
|
|
6
6
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
7
7
|
require('path');
|
|
8
|
-
require('../../dist/package-
|
|
8
|
+
require('../../dist/package-d75d6b9f.cjs.prod.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as createPostcssConfig } from '../../dist/create-postcss-config-
|
|
1
|
+
export { c as createPostcssConfig } from '../../dist/create-postcss-config-040fa794.esm.js';
|
|
2
2
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
3
3
|
import 'path';
|
|
4
|
-
import '../../dist/package-
|
|
4
|
+
import '../../dist/package-14789720.esm.js';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var createWebpackConfigForDevelopment = require('../../dist/create-webpack-config-for-development-
|
|
6
|
-
var createWebpackConfigForProduction = require('../../dist/create-webpack-config-for-production-
|
|
5
|
+
var createWebpackConfigForDevelopment = require('../../dist/create-webpack-config-for-development-835be72f.cjs.dev.js');
|
|
6
|
+
var createWebpackConfigForProduction = require('../../dist/create-webpack-config-for-production-ffeb4a22.cjs.dev.js');
|
|
7
7
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
8
8
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
9
9
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
@@ -29,11 +29,10 @@ require('@babel/runtime-corejs3/helpers/createClass');
|
|
|
29
29
|
require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
30
30
|
require('@commercetools-frontend/application-config');
|
|
31
31
|
require('@commercetools-frontend/mc-html-template');
|
|
32
|
-
require('../../dist/create-postcss-config-
|
|
32
|
+
require('../../dist/create-postcss-config-7cebb3e2.cjs.dev.js');
|
|
33
33
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
34
|
-
require('../../dist/package-
|
|
35
|
-
require('../../dist/
|
|
36
|
-
require('../../dist/optimizations-7789145e.cjs.dev.js');
|
|
34
|
+
require('../../dist/package-6dcc2c4f.cjs.dev.js');
|
|
35
|
+
require('../../dist/optimizations-56be74d6.cjs.dev.js');
|
|
37
36
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
38
37
|
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
39
38
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|