@commercetools-frontend/mc-scripts 0.0.0-CRAFT-1791-20251006162610
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/LICENSE +21 -0
- package/README.md +7 -0
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.d.ts +2 -0
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.dev.js +7 -0
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.js +7 -0
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.prod.js +7 -0
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.esm.js +5 -0
- package/application-runtime/package.json +4 -0
- package/bin/cli.js +8 -0
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.d.ts +2 -0
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +199 -0
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.js +7 -0
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +199 -0
- package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +184 -0
- package/cli/package.json +4 -0
- package/config/create-webpack-config-for-development.js +8 -0
- package/config/create-webpack-config-for-production.js +8 -0
- package/config/vendors-to-transpile.js +6 -0
- package/dist/build-2a0a18bd.esm.js +155 -0
- package/dist/build-521f3f9f.cjs.prod.js +169 -0
- package/dist/build-988fc0f7.cjs.dev.js +169 -0
- package/dist/build-vite-16b1a575.cjs.dev.js +238 -0
- package/dist/build-vite-59e1f185.esm.js +208 -0
- package/dist/build-vite-5d317720.cjs.prod.js +238 -0
- package/dist/commercetools-frontend-mc-scripts.cjs.d.ts +2 -0
- package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +29 -0
- package/dist/commercetools-frontend-mc-scripts.cjs.js +7 -0
- package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +29 -0
- package/dist/commercetools-frontend-mc-scripts.esm.js +21 -0
- package/dist/compile-html-025cd493.esm.js +34 -0
- package/dist/compile-html-50fd05ec.cjs.prod.js +42 -0
- package/dist/compile-html-f4ac88cc.cjs.dev.js +42 -0
- package/dist/config-sync-70a16916.cjs.dev.js +852 -0
- package/dist/config-sync-72c20d80.cjs.prod.js +846 -0
- package/dist/config-sync-bc895390.esm.js +830 -0
- package/dist/create-postcss-config-cb7be312.cjs.dev.js +81 -0
- package/dist/create-postcss-config-dde0ccf1.esm.js +75 -0
- package/dist/create-postcss-config-edca0c33.cjs.prod.js +81 -0
- package/dist/create-webpack-config-for-development-1aed1cc0.cjs.prod.js +465 -0
- package/dist/create-webpack-config-for-development-a95f3634.esm.js +440 -0
- package/dist/create-webpack-config-for-development-d003697b.cjs.dev.js +465 -0
- package/dist/create-webpack-config-for-production-15fbe7db.cjs.dev.js +523 -0
- package/dist/create-webpack-config-for-production-764c482f.cjs.prod.js +523 -0
- package/dist/create-webpack-config-for-production-9f42c336.esm.js +493 -0
- package/dist/credentials-storage-66c1e51f.cjs.prod.js +95 -0
- package/dist/credentials-storage-d001f726.esm.js +83 -0
- package/dist/credentials-storage-e7884d17.cjs.dev.js +95 -0
- package/dist/declarations/src/application-runtime.d.ts +1 -0
- package/dist/declarations/src/cli.d.ts +4 -0
- package/dist/declarations/src/config/create-postcss-config.d.ts +4 -0
- package/dist/declarations/src/config/create-webpack-config-for-development.d.ts +10 -0
- package/dist/declarations/src/config/create-webpack-config-for-production.d.ts +10 -0
- package/dist/declarations/src/config/vendors-to-transpile.d.ts +2 -0
- package/dist/declarations/src/deprecated-entry-points.d.ts +7 -0
- package/dist/declarations/src/index.d.ts +3 -0
- package/dist/declarations/src/postcss.d.ts +1 -0
- package/dist/declarations/src/types.d.ts +94 -0
- package/dist/declarations/src/version.d.ts +2 -0
- package/dist/declarations/src/webpack-loaders/i18n-message-compilation-loader.d.ts +3 -0
- package/dist/declarations/src/webpack.d.ts +2 -0
- package/dist/deployment-previews-set-17e8ed48.cjs.prod.js +202 -0
- package/dist/deployment-previews-set-3648972f.esm.js +191 -0
- package/dist/deployment-previews-set-37aef990.cjs.dev.js +202 -0
- package/dist/does-file-exist-32618334.esm.js +12 -0
- package/dist/does-file-exist-be53305d.cjs.prod.js +18 -0
- package/dist/does-file-exist-eb86baca.cjs.dev.js +18 -0
- package/dist/graphql-requests-6a47ad5b.esm.js +247 -0
- package/dist/graphql-requests-779b867b.cjs.dev.js +270 -0
- package/dist/graphql-requests-8086eba7.cjs.prod.js +270 -0
- package/dist/has-jsx-runtime-aa5d21ee.cjs.dev.js +15 -0
- package/dist/has-jsx-runtime-c3202df5.cjs.prod.js +15 -0
- package/dist/has-jsx-runtime-e3ecb09b.esm.js +13 -0
- package/dist/i18n-message-complilation-21d3b0aa.esm.js +15 -0
- package/dist/i18n-message-complilation-7311cb29.cjs.dev.js +23 -0
- package/dist/i18n-message-complilation-7762da61.cjs.prod.js +23 -0
- package/dist/login-0a728449.esm.js +229 -0
- package/dist/login-817a5a26.cjs.dev.js +270 -0
- package/dist/login-85c25393.cjs.prod.js +270 -0
- package/dist/optimizations-7789145e.cjs.dev.js +85 -0
- package/dist/optimizations-bf991634.esm.js +67 -0
- package/dist/optimizations-fb93514f.cjs.prod.js +85 -0
- package/dist/package-7e170dc4.cjs.dev.js +160 -0
- package/dist/package-940b0a2a.cjs.prod.js +160 -0
- package/dist/package-99e547a7.esm.js +158 -0
- package/dist/paths-39f22b8b.esm.js +36 -0
- package/dist/paths-7768b440.cjs.prod.js +44 -0
- package/dist/paths-b76fc753.cjs.dev.js +44 -0
- package/dist/serve-1036c2de.esm.js +55 -0
- package/dist/serve-50d33f0b.cjs.dev.js +64 -0
- package/dist/serve-8a506da6.cjs.prod.js +64 -0
- package/dist/start-1d677ad8.cjs.dev.js +177 -0
- package/dist/start-2a7ae03d.esm.js +164 -0
- package/dist/start-f56cb5f7.cjs.prod.js +177 -0
- package/dist/start-vite-068e9f73.cjs.dev.js +128 -0
- package/dist/start-vite-29078b3a.cjs.prod.js +128 -0
- package/dist/start-vite-7d1161e8.esm.js +116 -0
- package/dist/vendors-to-transpile-04a49d40.cjs.prod.js +5 -0
- package/dist/vendors-to-transpile-6ab4ea06.cjs.dev.js +5 -0
- package/dist/vendors-to-transpile-7dc84a72.esm.js +3 -0
- package/dist/vite-plugin-svgr-4034a834.cjs.prod.js +151 -0
- package/dist/vite-plugin-svgr-7d06f400.cjs.dev.js +151 -0
- package/dist/vite-plugin-svgr-de6ee7da.esm.js +125 -0
- package/package.json +156 -0
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.d.ts +2 -0
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +12 -0
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.js +7 -0
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +12 -0
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +4 -0
- package/postcss/package.json +4 -0
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.d.ts +2 -0
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +57 -0
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.js +7 -0
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +57 -0
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +48 -0
- package/webpack/package.json +4 -0
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.d.ts +3 -0
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.dev.js +30 -0
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.js +7 -0
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.prod.js +30 -0
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.esm.js +26 -0
- package/webpack-loaders/i18n-message-compilation-loader/package.json +4 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var crypto = require('crypto');
|
|
4
|
+
var fs = require('fs');
|
|
5
|
+
var pluginutils = require('@rollup/pluginutils');
|
|
6
|
+
var vite = require('vite');
|
|
7
|
+
var _matchAllInstanceProperty = require('@babel/runtime-corejs3/core-js/instance/match-all');
|
|
8
|
+
|
|
9
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
function _interopNamespace(e) {
|
|
12
|
+
if (e && e.__esModule) return e;
|
|
13
|
+
var n = Object.create(null);
|
|
14
|
+
if (e) {
|
|
15
|
+
Object.keys(e).forEach(function (k) {
|
|
16
|
+
if (k !== 'default') {
|
|
17
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
18
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return e[k]; }
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
n["default"] = e;
|
|
26
|
+
return Object.freeze(n);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
var crypto__default = /*#__PURE__*/_interopDefault(crypto);
|
|
30
|
+
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
31
|
+
var _matchAllInstanceProperty__default = /*#__PURE__*/_interopDefault(_matchAllInstanceProperty);
|
|
32
|
+
|
|
33
|
+
async function optimizeEmbeddedPngs(code, id) {
|
|
34
|
+
const pngRegex = /href="data:image\/png;base64,([a-zA-Z0-9+/]+=*)"/gs;
|
|
35
|
+
let modifiedCode = code;
|
|
36
|
+
const matchesIterator = _matchAllInstanceProperty__default["default"](code).call(code, pngRegex);
|
|
37
|
+
for (const match of matchesIterator) {
|
|
38
|
+
const originalBase64 = match[1];
|
|
39
|
+
if (originalBase64) {
|
|
40
|
+
// This length would indicate that the match is greater than ~1mb
|
|
41
|
+
if (originalBase64.length > 1000000) {
|
|
42
|
+
const fileName = id.split('/').pop();
|
|
43
|
+
console.warn(`\n🚨 You have a large png embedded in ${fileName} - consider using an image tag instead 🚨`);
|
|
44
|
+
try {
|
|
45
|
+
const pngBuffer = Buffer.from(originalBase64, 'base64');
|
|
46
|
+
const sharp = (await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('sharp')); })).default;
|
|
47
|
+
const optimizedBuffer = await sharp(pngBuffer).png({
|
|
48
|
+
quality: 10,
|
|
49
|
+
compressionLevel: 9
|
|
50
|
+
}).toBuffer();
|
|
51
|
+
const optimizedPngBase64 = optimizedBuffer.toString('base64');
|
|
52
|
+
// Construct the new href value
|
|
53
|
+
const originalMatch = match[0];
|
|
54
|
+
const optimizedXlinkHref = originalMatch.replace(originalBase64, optimizedPngBase64);
|
|
55
|
+
// Replace the original href with the optimized one
|
|
56
|
+
modifiedCode = modifiedCode.replace(originalMatch, optimizedXlinkHref);
|
|
57
|
+
} catch (error) {
|
|
58
|
+
console.error('Error processing embedded PNG:', error, 'Original Base64:', originalBase64);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return modifiedCode;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* COPIED FROM https://github.com/pd4d10/vite-plugin-svgr
|
|
68
|
+
*/
|
|
69
|
+
function vitePluginSvgr() {
|
|
70
|
+
const filter = pluginutils.createFilter('**/*.react.svg');
|
|
71
|
+
return {
|
|
72
|
+
name: 'vite-plugin-svgr',
|
|
73
|
+
async transform(_code, id) {
|
|
74
|
+
if (filter(id)) {
|
|
75
|
+
const _await$import = await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@svgr/core')); }),
|
|
76
|
+
transform = _await$import.transform;
|
|
77
|
+
const svgCode = await fs__default["default"].promises.readFile(id, 'utf8');
|
|
78
|
+
let transformableSVGCode;
|
|
79
|
+
if (process.env.ENABLE_EXPERIMENTAL_SVG_PNG_OPTIMIZATION === 'true') {
|
|
80
|
+
// This is a temporary fix for the issue with large embedded PNGs
|
|
81
|
+
// in SVGs. It will be removed once we have a better solution.
|
|
82
|
+
transformableSVGCode = await optimizeEmbeddedPngs(svgCode, id);
|
|
83
|
+
} else {
|
|
84
|
+
transformableSVGCode = svgCode;
|
|
85
|
+
}
|
|
86
|
+
const componentCode = await transform(transformableSVGCode, {
|
|
87
|
+
icon: false,
|
|
88
|
+
svgoConfig: {
|
|
89
|
+
plugins: [{
|
|
90
|
+
// https://github.com/svg/svgo#default-preset
|
|
91
|
+
name: 'preset-default',
|
|
92
|
+
params: {
|
|
93
|
+
overrides: {
|
|
94
|
+
removeViewBox: false
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
// Avoid collisions with ids in other SVGs,
|
|
99
|
+
// which was causing incorrect masking, gradient directions, etc
|
|
100
|
+
// this is an ongoing issue with both SVGR and SVGO,
|
|
101
|
+
// https://github.com/svg/svgo/issues/913#issuecomment-369373572
|
|
102
|
+
// see SVGR issues:
|
|
103
|
+
// https://github.com/gregberge/svgr/issues/322
|
|
104
|
+
// https://github.com/gregberge/svgr/issues/210
|
|
105
|
+
// see SVGO issues:
|
|
106
|
+
// https://github.com/svg/svgo/issues/674
|
|
107
|
+
// https://github.com/svg/svgo/issues/1746
|
|
108
|
+
//
|
|
109
|
+
// Initially, a naive counter was implemented based on this github comment:
|
|
110
|
+
// https://github.com/svg/svgo/issues/1746#issuecomment-1803600573
|
|
111
|
+
// But while that implementation insured id’s that are unique,
|
|
112
|
+
// it did not work in cases where the id is both declared and referenced in the same file,
|
|
113
|
+
// because the refernce gets a separate unique ID (a different number from the counter).
|
|
114
|
+
//
|
|
115
|
+
// The current implementation is based on this github comment:
|
|
116
|
+
// https://github.com/svg/svgo/issues/913#issuecomment-369373572
|
|
117
|
+
// Generates a hash of the filepath of the svg file, resulting in a prefix which is:
|
|
118
|
+
// - Short,
|
|
119
|
+
// - With characters valid for IDs,
|
|
120
|
+
// - The same within a file,
|
|
121
|
+
// - And different in different files.
|
|
122
|
+
{
|
|
123
|
+
name: 'prefixIds',
|
|
124
|
+
params: {
|
|
125
|
+
delim: '',
|
|
126
|
+
prefix: (_, info) => `svg${crypto__default["default"].createHash('shake256', {
|
|
127
|
+
outputLength: 6
|
|
128
|
+
}).update(info.path || '').digest('hex')}`
|
|
129
|
+
}
|
|
130
|
+
}]
|
|
131
|
+
}
|
|
132
|
+
}, {
|
|
133
|
+
filePath: id,
|
|
134
|
+
caller: {
|
|
135
|
+
previousExport: null
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
const res = await vite.transformWithEsbuild(componentCode, id, {
|
|
139
|
+
loader: 'jsx'
|
|
140
|
+
});
|
|
141
|
+
return {
|
|
142
|
+
code: res.code,
|
|
143
|
+
map: null // TODO:
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
return null;
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
exports.vitePluginSvgr = vitePluginSvgr;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import crypto from 'crypto';
|
|
2
|
+
import fs from 'fs';
|
|
3
|
+
import { createFilter } from '@rollup/pluginutils';
|
|
4
|
+
import { transformWithEsbuild } from 'vite';
|
|
5
|
+
import _matchAllInstanceProperty from '@babel/runtime-corejs3/core-js/instance/match-all';
|
|
6
|
+
|
|
7
|
+
async function optimizeEmbeddedPngs(code, id) {
|
|
8
|
+
const pngRegex = /href="data:image\/png;base64,([a-zA-Z0-9+/]+=*)"/gs;
|
|
9
|
+
let modifiedCode = code;
|
|
10
|
+
const matchesIterator = _matchAllInstanceProperty(code).call(code, pngRegex);
|
|
11
|
+
for (const match of matchesIterator) {
|
|
12
|
+
const originalBase64 = match[1];
|
|
13
|
+
if (originalBase64) {
|
|
14
|
+
// This length would indicate that the match is greater than ~1mb
|
|
15
|
+
if (originalBase64.length > 1000000) {
|
|
16
|
+
const fileName = id.split('/').pop();
|
|
17
|
+
console.warn(`\n🚨 You have a large png embedded in ${fileName} - consider using an image tag instead 🚨`);
|
|
18
|
+
try {
|
|
19
|
+
const pngBuffer = Buffer.from(originalBase64, 'base64');
|
|
20
|
+
const sharp = (await import('sharp')).default;
|
|
21
|
+
const optimizedBuffer = await sharp(pngBuffer).png({
|
|
22
|
+
quality: 10,
|
|
23
|
+
compressionLevel: 9
|
|
24
|
+
}).toBuffer();
|
|
25
|
+
const optimizedPngBase64 = optimizedBuffer.toString('base64');
|
|
26
|
+
// Construct the new href value
|
|
27
|
+
const originalMatch = match[0];
|
|
28
|
+
const optimizedXlinkHref = originalMatch.replace(originalBase64, optimizedPngBase64);
|
|
29
|
+
// Replace the original href with the optimized one
|
|
30
|
+
modifiedCode = modifiedCode.replace(originalMatch, optimizedXlinkHref);
|
|
31
|
+
} catch (error) {
|
|
32
|
+
console.error('Error processing embedded PNG:', error, 'Original Base64:', originalBase64);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return modifiedCode;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* COPIED FROM https://github.com/pd4d10/vite-plugin-svgr
|
|
42
|
+
*/
|
|
43
|
+
function vitePluginSvgr() {
|
|
44
|
+
const filter = createFilter('**/*.react.svg');
|
|
45
|
+
return {
|
|
46
|
+
name: 'vite-plugin-svgr',
|
|
47
|
+
async transform(_code, id) {
|
|
48
|
+
if (filter(id)) {
|
|
49
|
+
const _await$import = await import('@svgr/core'),
|
|
50
|
+
transform = _await$import.transform;
|
|
51
|
+
const svgCode = await fs.promises.readFile(id, 'utf8');
|
|
52
|
+
let transformableSVGCode;
|
|
53
|
+
if (process.env.ENABLE_EXPERIMENTAL_SVG_PNG_OPTIMIZATION === 'true') {
|
|
54
|
+
// This is a temporary fix for the issue with large embedded PNGs
|
|
55
|
+
// in SVGs. It will be removed once we have a better solution.
|
|
56
|
+
transformableSVGCode = await optimizeEmbeddedPngs(svgCode, id);
|
|
57
|
+
} else {
|
|
58
|
+
transformableSVGCode = svgCode;
|
|
59
|
+
}
|
|
60
|
+
const componentCode = await transform(transformableSVGCode, {
|
|
61
|
+
icon: false,
|
|
62
|
+
svgoConfig: {
|
|
63
|
+
plugins: [{
|
|
64
|
+
// https://github.com/svg/svgo#default-preset
|
|
65
|
+
name: 'preset-default',
|
|
66
|
+
params: {
|
|
67
|
+
overrides: {
|
|
68
|
+
removeViewBox: false
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
// Avoid collisions with ids in other SVGs,
|
|
73
|
+
// which was causing incorrect masking, gradient directions, etc
|
|
74
|
+
// this is an ongoing issue with both SVGR and SVGO,
|
|
75
|
+
// https://github.com/svg/svgo/issues/913#issuecomment-369373572
|
|
76
|
+
// see SVGR issues:
|
|
77
|
+
// https://github.com/gregberge/svgr/issues/322
|
|
78
|
+
// https://github.com/gregberge/svgr/issues/210
|
|
79
|
+
// see SVGO issues:
|
|
80
|
+
// https://github.com/svg/svgo/issues/674
|
|
81
|
+
// https://github.com/svg/svgo/issues/1746
|
|
82
|
+
//
|
|
83
|
+
// Initially, a naive counter was implemented based on this github comment:
|
|
84
|
+
// https://github.com/svg/svgo/issues/1746#issuecomment-1803600573
|
|
85
|
+
// But while that implementation insured id’s that are unique,
|
|
86
|
+
// it did not work in cases where the id is both declared and referenced in the same file,
|
|
87
|
+
// because the refernce gets a separate unique ID (a different number from the counter).
|
|
88
|
+
//
|
|
89
|
+
// The current implementation is based on this github comment:
|
|
90
|
+
// https://github.com/svg/svgo/issues/913#issuecomment-369373572
|
|
91
|
+
// Generates a hash of the filepath of the svg file, resulting in a prefix which is:
|
|
92
|
+
// - Short,
|
|
93
|
+
// - With characters valid for IDs,
|
|
94
|
+
// - The same within a file,
|
|
95
|
+
// - And different in different files.
|
|
96
|
+
{
|
|
97
|
+
name: 'prefixIds',
|
|
98
|
+
params: {
|
|
99
|
+
delim: '',
|
|
100
|
+
prefix: (_, info) => `svg${crypto.createHash('shake256', {
|
|
101
|
+
outputLength: 6
|
|
102
|
+
}).update(info.path || '').digest('hex')}`
|
|
103
|
+
}
|
|
104
|
+
}]
|
|
105
|
+
}
|
|
106
|
+
}, {
|
|
107
|
+
filePath: id,
|
|
108
|
+
caller: {
|
|
109
|
+
previousExport: null
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
const res = await transformWithEsbuild(componentCode, id, {
|
|
113
|
+
loader: 'jsx'
|
|
114
|
+
});
|
|
115
|
+
return {
|
|
116
|
+
code: res.code,
|
|
117
|
+
map: null // TODO:
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export { vitePluginSvgr as v };
|
package/package.json
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@commercetools-frontend/mc-scripts",
|
|
3
|
+
"version": "0.0.0-CRAFT-1791-20251006162610",
|
|
4
|
+
"description": "Configuration and scripts for developing a MC application",
|
|
5
|
+
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/commercetools/merchant-center-application-kit.git",
|
|
9
|
+
"directory": "packages/mc-scripts"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://docs.commercetools.com/merchant-center-customizations",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"javascript",
|
|
14
|
+
"frontend",
|
|
15
|
+
"react",
|
|
16
|
+
"toolkit"
|
|
17
|
+
],
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
22
|
+
"main": "dist/commercetools-frontend-mc-scripts.cjs.js",
|
|
23
|
+
"module": "dist/commercetools-frontend-mc-scripts.esm.js",
|
|
24
|
+
"preconstruct": {
|
|
25
|
+
"entrypoints": [
|
|
26
|
+
"./index.ts",
|
|
27
|
+
"./application-runtime.ts",
|
|
28
|
+
"./cli.ts",
|
|
29
|
+
"./postcss.ts",
|
|
30
|
+
"./webpack.ts",
|
|
31
|
+
"./webpack-loaders/i18n-message-compilation-loader.ts"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"bin",
|
|
36
|
+
"cli",
|
|
37
|
+
"dist",
|
|
38
|
+
"config",
|
|
39
|
+
"application-runtime",
|
|
40
|
+
"postcss",
|
|
41
|
+
"webpack",
|
|
42
|
+
"webpack-loaders",
|
|
43
|
+
"package.json",
|
|
44
|
+
"LICENSE",
|
|
45
|
+
"README.md"
|
|
46
|
+
],
|
|
47
|
+
"bin": "./bin/cli.js",
|
|
48
|
+
"browserslist": {
|
|
49
|
+
"production": [
|
|
50
|
+
">1%",
|
|
51
|
+
"not op_mini all",
|
|
52
|
+
"not dead"
|
|
53
|
+
],
|
|
54
|
+
"development": [
|
|
55
|
+
"last 2 firefox versions",
|
|
56
|
+
"last 2 chrome versions"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@babel/core": "^7.22.17",
|
|
61
|
+
"@babel/plugin-proposal-do-expressions": "^7.22.5",
|
|
62
|
+
"@babel/runtime": "^7.22.15",
|
|
63
|
+
"@babel/runtime-corejs3": "^7.22.15",
|
|
64
|
+
"@commercetools-frontend/application-components": "0.0.0-CRAFT-1791-20251006162610",
|
|
65
|
+
"@commercetools-frontend/application-config": "0.0.0-CRAFT-1791-20251006162610",
|
|
66
|
+
"@commercetools-frontend/assets": "0.0.0-CRAFT-1791-20251006162610",
|
|
67
|
+
"@commercetools-frontend/babel-preset-mc-app": "0.0.0-CRAFT-1791-20251006162610",
|
|
68
|
+
"@commercetools-frontend/constants": "0.0.0-CRAFT-1791-20251006162610",
|
|
69
|
+
"@commercetools-frontend/mc-dev-authentication": "0.0.0-CRAFT-1791-20251006162610",
|
|
70
|
+
"@commercetools-frontend/mc-html-template": "0.0.0-CRAFT-1791-20251006162610",
|
|
71
|
+
"@commercetools/http-user-agent": "3.0.0",
|
|
72
|
+
"@emotion/babel-plugin": "^11.13.5",
|
|
73
|
+
"@formatjs/cli-lib": "^6.3.8",
|
|
74
|
+
"@pmmmwh/react-refresh-webpack-plugin": "0.6.1",
|
|
75
|
+
"@rollup/plugin-graphql": "2.0.5",
|
|
76
|
+
"@rollup/pluginutils": "5.2.0",
|
|
77
|
+
"@svgr/babel-preset": "^6.5.1",
|
|
78
|
+
"@svgr/core": "^6.5.1",
|
|
79
|
+
"@svgr/webpack": "^6.5.1",
|
|
80
|
+
"@types/prompts": "^2.4.4",
|
|
81
|
+
"@types/svgo": "^2.6.4",
|
|
82
|
+
"@types/webpack-bundle-analyzer": "^4.6.0",
|
|
83
|
+
"@vitejs/plugin-react": "4.7.0",
|
|
84
|
+
"@vitejs/plugin-react-swc": "3.11.0",
|
|
85
|
+
"autoprefixer": "^10.4.15",
|
|
86
|
+
"babel-loader": "8.4.1",
|
|
87
|
+
"babel-plugin-formatjs": "^10.5.25",
|
|
88
|
+
"browserslist": "^4.21.10",
|
|
89
|
+
"chalk": "4.1.2",
|
|
90
|
+
"commander": "^13.1.0",
|
|
91
|
+
"core-js": "^3.32.2",
|
|
92
|
+
"css-loader": "6.11.0",
|
|
93
|
+
"css-minimizer-webpack-plugin": "3.4.1",
|
|
94
|
+
"dotenv": "16.6.1",
|
|
95
|
+
"dotenv-expand": "8.0.3",
|
|
96
|
+
"fs-extra": "10.1.0",
|
|
97
|
+
"graphql": "16.11.0",
|
|
98
|
+
"graphql-request": "5.2.0",
|
|
99
|
+
"graphql-tag": "^2.12.6",
|
|
100
|
+
"html-webpack-plugin": "5.6.3",
|
|
101
|
+
"json-loader": "0.5.7",
|
|
102
|
+
"jwt-decode": "3.1.2",
|
|
103
|
+
"lodash": "4.17.21",
|
|
104
|
+
"mini-css-extract-plugin": "2.9.4",
|
|
105
|
+
"moment": "^2.29.4",
|
|
106
|
+
"moment-locales-webpack-plugin": "1.2.0",
|
|
107
|
+
"node-fetch": "2.7.0",
|
|
108
|
+
"open": "^10.1.0",
|
|
109
|
+
"postcss": "8.5.6",
|
|
110
|
+
"postcss-custom-media": "8.0.2",
|
|
111
|
+
"postcss-custom-properties": "12.1.4",
|
|
112
|
+
"postcss-import": "14.1.0",
|
|
113
|
+
"postcss-loader": "6.2.1",
|
|
114
|
+
"postcss-reporter": "7.1.0",
|
|
115
|
+
"prettier": "2.8.8",
|
|
116
|
+
"prompts": "^2.4.2",
|
|
117
|
+
"querystring-es3": "^0.2.1",
|
|
118
|
+
"react-dev-utils": "12.0.1",
|
|
119
|
+
"react-refresh": "0.17.0",
|
|
120
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
121
|
+
"serve-handler": "6.1.6",
|
|
122
|
+
"sharp": "^0.34.1",
|
|
123
|
+
"shelljs": "0.10.0",
|
|
124
|
+
"style-loader": "3.3.4",
|
|
125
|
+
"svg-url-loader": "7.1.1",
|
|
126
|
+
"terser-webpack-plugin": "5.3.14",
|
|
127
|
+
"thread-loader": "3.0.4",
|
|
128
|
+
"url": "^0.11.0",
|
|
129
|
+
"vite": "~6.3.0",
|
|
130
|
+
"vite-bundle-analyzer": "0.23.0",
|
|
131
|
+
"vite-plugin-clean-build": "^1.4.1",
|
|
132
|
+
"webpack": "5.101.1",
|
|
133
|
+
"webpack-bundle-analyzer": "4.10.2",
|
|
134
|
+
"webpack-dev-server": "4.15.2",
|
|
135
|
+
"webpackbar": "5.0.2"
|
|
136
|
+
},
|
|
137
|
+
"devDependencies": {
|
|
138
|
+
"@commercetools/composable-commerce-test-data": "11.0.0",
|
|
139
|
+
"@tsconfig/node22": "^22.0.0",
|
|
140
|
+
"@types/fs-extra": "^11.0.1",
|
|
141
|
+
"@types/lodash": "^4.14.198",
|
|
142
|
+
"@types/mock-fs": "^4.13.4",
|
|
143
|
+
"@types/moment-locales-webpack-plugin": "^1.2.3",
|
|
144
|
+
"@types/node-fetch": "2.6.13",
|
|
145
|
+
"@types/prettier": "2.7.3",
|
|
146
|
+
"@types/serve-handler": "^6.1.1",
|
|
147
|
+
"jest-mock": "29.7.0",
|
|
148
|
+
"memfs": "^4.8.2",
|
|
149
|
+
"mock-fs": "^5.4.1",
|
|
150
|
+
"msw": "^1.3.5",
|
|
151
|
+
"rimraf": "5.0.10"
|
|
152
|
+
},
|
|
153
|
+
"engines": {
|
|
154
|
+
"node": "18.x || 20.x || >=22.0.0"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from "../../dist/declarations/src/postcss.js";
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVyY2V0b29scy1mcm9udGVuZC1tYy1zY3JpcHRzLXBvc3Rjc3MuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9kaXN0L2RlY2xhcmF0aW9ucy9zcmMvcG9zdGNzcy5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var createPostcssConfig = require('../../dist/create-postcss-config-cb7be312.cjs.dev.js');
|
|
6
|
+
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
7
|
+
require('path');
|
|
8
|
+
require('../../dist/package-7e170dc4.cjs.dev.js');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.createPostcssConfig = createPostcssConfig.createPostcssConfig;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var createPostcssConfig = require('../../dist/create-postcss-config-edca0c33.cjs.prod.js');
|
|
6
|
+
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
7
|
+
require('path');
|
|
8
|
+
require('../../dist/package-940b0a2a.cjs.prod.js');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.createPostcssConfig = createPostcssConfig.createPostcssConfig;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from "../../dist/declarations/src/webpack.js";
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWVyY2V0b29scy1mcm9udGVuZC1tYy1zY3JpcHRzLXdlYnBhY2suY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9kaXN0L2RlY2xhcmF0aW9ucy9zcmMvd2VicGFjay5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var createWebpackConfigForDevelopment = require('../../dist/create-webpack-config-for-development-d003697b.cjs.dev.js');
|
|
6
|
+
var createWebpackConfigForProduction = require('../../dist/create-webpack-config-for-production-15fbe7db.cjs.dev.js');
|
|
7
|
+
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
8
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
9
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
10
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
11
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
12
|
+
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
13
|
+
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
14
|
+
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
15
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
16
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
17
|
+
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
18
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
|
|
19
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
20
|
+
require('crypto');
|
|
21
|
+
require('path');
|
|
22
|
+
require('@pmmmwh/react-refresh-webpack-plugin');
|
|
23
|
+
require('html-webpack-plugin');
|
|
24
|
+
require('moment-locales-webpack-plugin');
|
|
25
|
+
require('webpack');
|
|
26
|
+
require('webpackbar');
|
|
27
|
+
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
28
|
+
require('@babel/runtime-corejs3/helpers/createClass');
|
|
29
|
+
require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
30
|
+
require('@commercetools-frontend/application-config');
|
|
31
|
+
require('@commercetools-frontend/mc-html-template');
|
|
32
|
+
require('../../dist/create-postcss-config-cb7be312.cjs.dev.js');
|
|
33
|
+
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
34
|
+
require('../../dist/package-7e170dc4.cjs.dev.js');
|
|
35
|
+
require('../../dist/has-jsx-runtime-aa5d21ee.cjs.dev.js');
|
|
36
|
+
require('../../dist/optimizations-7789145e.cjs.dev.js');
|
|
37
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
38
|
+
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
39
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
40
|
+
require('chalk');
|
|
41
|
+
require('../../dist/paths-b76fc753.cjs.dev.js');
|
|
42
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
43
|
+
require('fs');
|
|
44
|
+
require('../../dist/does-file-exist-eb86baca.cjs.dev.js');
|
|
45
|
+
require('node:fs');
|
|
46
|
+
require('../../dist/vendors-to-transpile-6ab4ea06.cjs.dev.js');
|
|
47
|
+
require('@babel/runtime-corejs3/core-js-stable/number/is-integer');
|
|
48
|
+
require('css-minimizer-webpack-plugin');
|
|
49
|
+
require('mini-css-extract-plugin');
|
|
50
|
+
require('terser-webpack-plugin');
|
|
51
|
+
require('webpack-bundle-analyzer');
|
|
52
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/bind');
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
exports.createWebpackConfigForDevelopment = createWebpackConfigForDevelopment.createWebpackConfigForDevelopment;
|
|
57
|
+
exports.createWebpackConfigForProduction = createWebpackConfigForProduction.createWebpackConfigForProduction;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var createWebpackConfigForDevelopment = require('../../dist/create-webpack-config-for-development-1aed1cc0.cjs.prod.js');
|
|
6
|
+
var createWebpackConfigForProduction = require('../../dist/create-webpack-config-for-production-764c482f.cjs.prod.js');
|
|
7
|
+
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
8
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
9
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
10
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/for-each');
|
|
11
|
+
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
12
|
+
require('@babel/runtime-corejs3/core-js-stable/object/define-properties');
|
|
13
|
+
require('@babel/runtime-corejs3/core-js-stable/object/define-property');
|
|
14
|
+
require('@babel/runtime-corejs3/helpers/defineProperty');
|
|
15
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/map');
|
|
16
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/filter');
|
|
17
|
+
require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
18
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
|
|
19
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
20
|
+
require('crypto');
|
|
21
|
+
require('path');
|
|
22
|
+
require('@pmmmwh/react-refresh-webpack-plugin');
|
|
23
|
+
require('html-webpack-plugin');
|
|
24
|
+
require('moment-locales-webpack-plugin');
|
|
25
|
+
require('webpack');
|
|
26
|
+
require('webpackbar');
|
|
27
|
+
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
28
|
+
require('@babel/runtime-corejs3/helpers/createClass');
|
|
29
|
+
require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
30
|
+
require('@commercetools-frontend/application-config');
|
|
31
|
+
require('@commercetools-frontend/mc-html-template');
|
|
32
|
+
require('../../dist/create-postcss-config-edca0c33.cjs.prod.js');
|
|
33
|
+
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
34
|
+
require('../../dist/package-940b0a2a.cjs.prod.js');
|
|
35
|
+
require('../../dist/has-jsx-runtime-c3202df5.cjs.prod.js');
|
|
36
|
+
require('../../dist/optimizations-fb93514f.cjs.prod.js');
|
|
37
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
38
|
+
require('@babel/runtime-corejs3/core-js-stable/object/entries');
|
|
39
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
40
|
+
require('chalk');
|
|
41
|
+
require('../../dist/paths-7768b440.cjs.prod.js');
|
|
42
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
43
|
+
require('fs');
|
|
44
|
+
require('../../dist/does-file-exist-be53305d.cjs.prod.js');
|
|
45
|
+
require('node:fs');
|
|
46
|
+
require('../../dist/vendors-to-transpile-04a49d40.cjs.prod.js');
|
|
47
|
+
require('@babel/runtime-corejs3/core-js-stable/number/is-integer');
|
|
48
|
+
require('css-minimizer-webpack-plugin');
|
|
49
|
+
require('mini-css-extract-plugin');
|
|
50
|
+
require('terser-webpack-plugin');
|
|
51
|
+
require('webpack-bundle-analyzer');
|
|
52
|
+
require('@babel/runtime-corejs3/core-js-stable/instance/bind');
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
exports.createWebpackConfigForDevelopment = createWebpackConfigForDevelopment.createWebpackConfigForDevelopment;
|
|
57
|
+
exports.createWebpackConfigForProduction = createWebpackConfigForProduction.createWebpackConfigForProduction;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export { c as createWebpackConfigForDevelopment } from '../../dist/create-webpack-config-for-development-a95f3634.esm.js';
|
|
2
|
+
export { c as createWebpackConfigForProduction } from '../../dist/create-webpack-config-for-production-9f42c336.esm.js';
|
|
3
|
+
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
4
|
+
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
5
|
+
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
6
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/for-each';
|
|
7
|
+
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
8
|
+
import '@babel/runtime-corejs3/core-js-stable/object/define-properties';
|
|
9
|
+
import '@babel/runtime-corejs3/core-js-stable/object/define-property';
|
|
10
|
+
import '@babel/runtime-corejs3/helpers/defineProperty';
|
|
11
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/map';
|
|
12
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/filter';
|
|
13
|
+
import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
14
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/ends-with';
|
|
15
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
16
|
+
import 'crypto';
|
|
17
|
+
import 'path';
|
|
18
|
+
import '@pmmmwh/react-refresh-webpack-plugin';
|
|
19
|
+
import 'html-webpack-plugin';
|
|
20
|
+
import 'moment-locales-webpack-plugin';
|
|
21
|
+
import 'webpack';
|
|
22
|
+
import 'webpackbar';
|
|
23
|
+
import '@babel/runtime-corejs3/helpers/classCallCheck';
|
|
24
|
+
import '@babel/runtime-corejs3/helpers/createClass';
|
|
25
|
+
import '@babel/runtime-corejs3/core-js-stable/object/assign';
|
|
26
|
+
import '@commercetools-frontend/application-config';
|
|
27
|
+
import '@commercetools-frontend/mc-html-template';
|
|
28
|
+
import '../../dist/create-postcss-config-dde0ccf1.esm.js';
|
|
29
|
+
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
30
|
+
import '../../dist/package-99e547a7.esm.js';
|
|
31
|
+
import '../../dist/has-jsx-runtime-e3ecb09b.esm.js';
|
|
32
|
+
import '../../dist/optimizations-bf991634.esm.js';
|
|
33
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
|
34
|
+
import '@babel/runtime-corejs3/core-js-stable/object/entries';
|
|
35
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
36
|
+
import 'chalk';
|
|
37
|
+
import '../../dist/paths-39f22b8b.esm.js';
|
|
38
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
39
|
+
import 'fs';
|
|
40
|
+
import '../../dist/does-file-exist-32618334.esm.js';
|
|
41
|
+
import 'node:fs';
|
|
42
|
+
import '../../dist/vendors-to-transpile-7dc84a72.esm.js';
|
|
43
|
+
import '@babel/runtime-corejs3/core-js-stable/number/is-integer';
|
|
44
|
+
import 'css-minimizer-webpack-plugin';
|
|
45
|
+
import 'mini-css-extract-plugin';
|
|
46
|
+
import 'terser-webpack-plugin';
|
|
47
|
+
import 'webpack-bundle-analyzer';
|
|
48
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/bind';
|