@commercetools-frontend/mc-scripts 22.14.1 → 22.14.3
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 +5 -5
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +5 -5
- package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +5 -5
- package/dist/{build-356e2e91.cjs.dev.js → build-210c8202.cjs.dev.js} +4 -3
- package/dist/{build-f5cb030a.esm.js → build-6d4f728c.esm.js} +4 -3
- package/dist/{build-f6085193.cjs.prod.js → build-c93fb0e9.cjs.prod.js} +4 -3
- package/dist/{build-vite-e13f8ca7.esm.js → build-vite-878805aa.esm.js} +2 -1
- package/dist/{build-vite-c66f2abe.cjs.prod.js → build-vite-b674f8bd.cjs.prod.js} +2 -1
- package/dist/{build-vite-42269e1d.cjs.dev.js → build-vite-eaddf5a8.cjs.dev.js} +2 -1
- package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
- package/dist/{config-sync-67eb3446.cjs.dev.js → config-sync-3e6c3035.cjs.dev.js} +2 -2
- package/dist/{config-sync-569d9ad1.esm.js → config-sync-a2fe38a6.esm.js} +2 -2
- package/dist/{config-sync-aecedc7a.cjs.prod.js → config-sync-c1bc9bee.cjs.prod.js} +2 -2
- package/dist/{create-postcss-config-81acd016.cjs.dev.js → create-postcss-config-4c8b1962.cjs.dev.js} +1 -1
- package/dist/{create-postcss-config-eb5e8d83.esm.js → create-postcss-config-6c1280ab.esm.js} +1 -1
- package/dist/{create-postcss-config-b53b0c26.cjs.prod.js → create-postcss-config-bff03b9b.cjs.prod.js} +1 -1
- package/dist/{create-webpack-config-for-development-55b938dd.cjs.prod.js → create-webpack-config-for-development-6b7944f5.cjs.prod.js} +27 -8
- package/dist/{create-webpack-config-for-development-7c8d6971.esm.js → create-webpack-config-for-development-c4b70ca4.esm.js} +26 -8
- package/dist/{create-webpack-config-for-development-6f410c0b.cjs.dev.js → create-webpack-config-for-development-d45ff410.cjs.dev.js} +27 -8
- package/dist/{create-webpack-config-for-production-3357cae6.esm.js → create-webpack-config-for-production-7f634d7c.esm.js} +26 -8
- package/dist/{create-webpack-config-for-production-3c335bab.cjs.prod.js → create-webpack-config-for-production-d4f91b7d.cjs.prod.js} +27 -8
- package/dist/{create-webpack-config-for-production-4b437de5.cjs.dev.js → create-webpack-config-for-production-ee4132c7.cjs.dev.js} +27 -8
- package/dist/{credentials-storage-ef65664b.esm.js → credentials-storage-1741ac9c.esm.js} +1 -1
- package/dist/{credentials-storage-62ec0164.cjs.dev.js → credentials-storage-938a2c84.cjs.dev.js} +1 -1
- package/dist/{credentials-storage-d1ea3106.cjs.prod.js → credentials-storage-cb6e2522.cjs.prod.js} +1 -1
- package/dist/{login-beab92e2.cjs.dev.js → login-2a0677b3.cjs.dev.js} +2 -2
- package/dist/{login-7872f156.cjs.prod.js → login-36718a2f.cjs.prod.js} +2 -2
- package/dist/{login-b3e5ab62.esm.js → login-52b698f7.esm.js} +2 -2
- package/dist/{package-4104fc44.cjs.prod.js → package-053afce2.cjs.prod.js} +8 -8
- package/dist/{package-11af395e.cjs.dev.js → package-2e29784f.cjs.dev.js} +8 -8
- package/dist/{package-1b5b75e6.esm.js → package-2f22c78e.esm.js} +8 -8
- package/dist/{start-30e61d98.esm.js → start-15fb0bf8.esm.js} +4 -3
- package/dist/{start-ed6050ed.cjs.dev.js → start-17a11d35.cjs.dev.js} +4 -3
- package/dist/{start-fbca2690.cjs.prod.js → start-2b3561fd.cjs.prod.js} +4 -3
- package/dist/{start-vite-96ebd708.cjs.dev.js → start-vite-1eace36f.cjs.dev.js} +2 -1
- package/dist/{start-vite-16fa274b.esm.js → start-vite-42ce74bc.esm.js} +2 -1
- package/dist/{start-vite-ea2b55b7.cjs.prod.js → start-vite-e1f2b31e.cjs.prod.js} +2 -1
- package/dist/{vite-plugin-svgr-031bd5cd.cjs.prod.js → vite-plugin-svgr-12a557b9.cjs.dev.js} +26 -7
- package/dist/{vite-plugin-svgr-bb1239b4.cjs.dev.js → vite-plugin-svgr-e52c8492.cjs.prod.js} +26 -7
- package/dist/{vite-plugin-svgr-f34f2827.esm.js → vite-plugin-svgr-e6f228d8.esm.js} +25 -7
- package/package.json +8 -8
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +5 -4
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +5 -4
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +5 -4
|
@@ -10,7 +10,7 @@ var path = require('path');
|
|
|
10
10
|
var cac = require('cac');
|
|
11
11
|
var dotenv = require('dotenv');
|
|
12
12
|
var dotenvExpand = require('dotenv-expand');
|
|
13
|
-
var _package = require('../../dist/package-
|
|
13
|
+
var _package = require('../../dist/package-2e29784f.cjs.dev.js');
|
|
14
14
|
|
|
15
15
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
16
16
|
|
|
@@ -56,7 +56,7 @@ async function run() {
|
|
|
56
56
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
57
57
|
console.log('');
|
|
58
58
|
}
|
|
59
|
-
const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-
|
|
59
|
+
const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-1eace36f.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-17a11d35.cjs.dev.js'); });
|
|
60
60
|
await startCommand.default();
|
|
61
61
|
});
|
|
62
62
|
|
|
@@ -77,7 +77,7 @@ async function run() {
|
|
|
77
77
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
78
78
|
console.log('');
|
|
79
79
|
}
|
|
80
|
-
const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-
|
|
80
|
+
const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-eaddf5a8.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-210c8202.cjs.dev.js'); });
|
|
81
81
|
await buildCommand.default();
|
|
82
82
|
const shouldAlsoCompile = !options.buildOnly;
|
|
83
83
|
if (shouldAlsoCompile) {
|
|
@@ -126,7 +126,7 @@ async function run() {
|
|
|
126
126
|
|
|
127
127
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
128
128
|
process.env.NODE_ENV = 'production';
|
|
129
|
-
const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-
|
|
129
|
+
const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-2a0677b3.cjs.dev.js'); });
|
|
130
130
|
await loginCommand.default();
|
|
131
131
|
});
|
|
132
132
|
|
|
@@ -141,7 +141,7 @@ async function run() {
|
|
|
141
141
|
|
|
142
142
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
143
143
|
process.env.NODE_ENV = 'production';
|
|
144
|
-
const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-
|
|
144
|
+
const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-3e6c3035.cjs.dev.js'); });
|
|
145
145
|
await configSyncCommand.default(options);
|
|
146
146
|
});
|
|
147
147
|
cli.help();
|
|
@@ -10,7 +10,7 @@ var path = require('path');
|
|
|
10
10
|
var cac = require('cac');
|
|
11
11
|
var dotenv = require('dotenv');
|
|
12
12
|
var dotenvExpand = require('dotenv-expand');
|
|
13
|
-
var _package = require('../../dist/package-
|
|
13
|
+
var _package = require('../../dist/package-053afce2.cjs.prod.js');
|
|
14
14
|
|
|
15
15
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
16
16
|
|
|
@@ -56,7 +56,7 @@ async function run() {
|
|
|
56
56
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
57
57
|
console.log('');
|
|
58
58
|
}
|
|
59
|
-
const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-
|
|
59
|
+
const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-e1f2b31e.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-2b3561fd.cjs.prod.js'); });
|
|
60
60
|
await startCommand.default();
|
|
61
61
|
});
|
|
62
62
|
|
|
@@ -77,7 +77,7 @@ async function run() {
|
|
|
77
77
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
78
78
|
console.log('');
|
|
79
79
|
}
|
|
80
|
-
const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-
|
|
80
|
+
const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-b674f8bd.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-c93fb0e9.cjs.prod.js'); });
|
|
81
81
|
await buildCommand.default();
|
|
82
82
|
const shouldAlsoCompile = !options.buildOnly;
|
|
83
83
|
if (shouldAlsoCompile) {
|
|
@@ -126,7 +126,7 @@ async function run() {
|
|
|
126
126
|
|
|
127
127
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
128
128
|
process.env.NODE_ENV = 'production';
|
|
129
|
-
const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-
|
|
129
|
+
const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-36718a2f.cjs.prod.js'); });
|
|
130
130
|
await loginCommand.default();
|
|
131
131
|
});
|
|
132
132
|
|
|
@@ -141,7 +141,7 @@ async function run() {
|
|
|
141
141
|
|
|
142
142
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
143
143
|
process.env.NODE_ENV = 'production';
|
|
144
|
-
const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-
|
|
144
|
+
const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-c1bc9bee.cjs.prod.js'); });
|
|
145
145
|
await configSyncCommand.default(options);
|
|
146
146
|
});
|
|
147
147
|
cli.help();
|
|
@@ -6,7 +6,7 @@ import path from 'path';
|
|
|
6
6
|
import { cac } from 'cac';
|
|
7
7
|
import dotenv from 'dotenv';
|
|
8
8
|
import dotenvExpand from 'dotenv-expand';
|
|
9
|
-
import { p as pkgJson } from '../../dist/package-
|
|
9
|
+
import { p as pkgJson } from '../../dist/package-2f22c78e.esm.js';
|
|
10
10
|
|
|
11
11
|
const cli = cac('mc-scripts');
|
|
12
12
|
|
|
@@ -42,7 +42,7 @@ async function run() {
|
|
|
42
42
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
43
43
|
console.log('');
|
|
44
44
|
}
|
|
45
|
-
const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-
|
|
45
|
+
const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-42ce74bc.esm.js') : await import('../../dist/start-15fb0bf8.esm.js');
|
|
46
46
|
await startCommand.default();
|
|
47
47
|
});
|
|
48
48
|
|
|
@@ -63,7 +63,7 @@ async function run() {
|
|
|
63
63
|
console.log('Experimental Vite bundler enabled! 🚀');
|
|
64
64
|
console.log('');
|
|
65
65
|
}
|
|
66
|
-
const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-
|
|
66
|
+
const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-878805aa.esm.js') : await import('../../dist/build-6d4f728c.esm.js');
|
|
67
67
|
await buildCommand.default();
|
|
68
68
|
const shouldAlsoCompile = !options.buildOnly;
|
|
69
69
|
if (shouldAlsoCompile) {
|
|
@@ -112,7 +112,7 @@ async function run() {
|
|
|
112
112
|
|
|
113
113
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
114
114
|
process.env.NODE_ENV = 'production';
|
|
115
|
-
const loginCommand = await import('../../dist/login-
|
|
115
|
+
const loginCommand = await import('../../dist/login-52b698f7.esm.js');
|
|
116
116
|
await loginCommand.default();
|
|
117
117
|
});
|
|
118
118
|
|
|
@@ -127,7 +127,7 @@ async function run() {
|
|
|
127
127
|
|
|
128
128
|
// Do this as the first thing so that any code reading it knows the right env.
|
|
129
129
|
process.env.NODE_ENV = 'production';
|
|
130
|
-
const configSyncCommand = await import('../../dist/config-sync-
|
|
130
|
+
const configSyncCommand = await import('../../dist/config-sync-a2fe38a6.esm.js');
|
|
131
131
|
await configSyncCommand.default(options);
|
|
132
132
|
});
|
|
133
133
|
cli.help();
|
|
@@ -10,7 +10,7 @@ var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
|
|
|
10
10
|
var printBuildError = require('react-dev-utils/printBuildError');
|
|
11
11
|
var webpack = require('webpack');
|
|
12
12
|
var assets = require('@commercetools-frontend/assets');
|
|
13
|
-
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-
|
|
13
|
+
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-ee4132c7.cjs.dev.js');
|
|
14
14
|
var paths = require('./paths-d1febc82.cjs.dev.js');
|
|
15
15
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
16
16
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -26,6 +26,7 @@ require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
|
26
26
|
require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
|
|
27
27
|
require('@babel/runtime-corejs3/core-js-stable/number/is-integer');
|
|
28
28
|
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
29
|
+
require('crypto');
|
|
29
30
|
require('css-minimizer-webpack-plugin');
|
|
30
31
|
require('html-webpack-plugin');
|
|
31
32
|
require('mini-css-extract-plugin');
|
|
@@ -38,9 +39,9 @@ require('@babel/runtime-corejs3/core-js-stable/instance/bind');
|
|
|
38
39
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
39
40
|
require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
40
41
|
require('fs');
|
|
41
|
-
require('./create-postcss-config-
|
|
42
|
+
require('./create-postcss-config-4c8b1962.cjs.dev.js');
|
|
42
43
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
43
|
-
require('./package-
|
|
44
|
+
require('./package-2e29784f.cjs.dev.js');
|
|
44
45
|
require('./has-jsx-runtime-aa5d21ee.cjs.dev.js');
|
|
45
46
|
require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
|
|
46
47
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
@@ -8,7 +8,7 @@ import formatWebpackMessages from 'react-dev-utils/formatWebpackMessages';
|
|
|
8
8
|
import printBuildError from 'react-dev-utils/printBuildError';
|
|
9
9
|
import webpack from 'webpack';
|
|
10
10
|
import { packageLocation } from '@commercetools-frontend/assets';
|
|
11
|
-
import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-
|
|
11
|
+
import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-7f634d7c.esm.js';
|
|
12
12
|
import { p as paths } from './paths-ded20ae1.esm.js';
|
|
13
13
|
import '@babel/runtime-corejs3/core-js-stable/object/keys';
|
|
14
14
|
import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
@@ -24,6 +24,7 @@ import '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
|
24
24
|
import '@babel/runtime-corejs3/core-js-stable/instance/ends-with';
|
|
25
25
|
import '@babel/runtime-corejs3/core-js-stable/number/is-integer';
|
|
26
26
|
import '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
27
|
+
import 'crypto';
|
|
27
28
|
import 'css-minimizer-webpack-plugin';
|
|
28
29
|
import 'html-webpack-plugin';
|
|
29
30
|
import 'mini-css-extract-plugin';
|
|
@@ -36,9 +37,9 @@ import '@babel/runtime-corejs3/core-js-stable/instance/bind';
|
|
|
36
37
|
import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
|
|
37
38
|
import '@babel/runtime-corejs3/core-js-stable/object/assign';
|
|
38
39
|
import 'fs';
|
|
39
|
-
import './create-postcss-config-
|
|
40
|
+
import './create-postcss-config-6c1280ab.esm.js';
|
|
40
41
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
41
|
-
import './package-
|
|
42
|
+
import './package-2f22c78e.esm.js';
|
|
42
43
|
import './has-jsx-runtime-e3ecb09b.esm.js';
|
|
43
44
|
import './vendors-to-transpile-7dc84a72.esm.js';
|
|
44
45
|
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
@@ -10,7 +10,7 @@ var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
|
|
|
10
10
|
var printBuildError = require('react-dev-utils/printBuildError');
|
|
11
11
|
var webpack = require('webpack');
|
|
12
12
|
var assets = require('@commercetools-frontend/assets');
|
|
13
|
-
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-
|
|
13
|
+
var createWebpackConfigForProduction = require('./create-webpack-config-for-production-d4f91b7d.cjs.prod.js');
|
|
14
14
|
var paths = require('./paths-854af5ef.cjs.prod.js');
|
|
15
15
|
require('@babel/runtime-corejs3/core-js-stable/object/keys');
|
|
16
16
|
require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -26,6 +26,7 @@ require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
|
26
26
|
require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
|
|
27
27
|
require('@babel/runtime-corejs3/core-js-stable/number/is-integer');
|
|
28
28
|
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
29
|
+
require('crypto');
|
|
29
30
|
require('css-minimizer-webpack-plugin');
|
|
30
31
|
require('html-webpack-plugin');
|
|
31
32
|
require('mini-css-extract-plugin');
|
|
@@ -38,9 +39,9 @@ require('@babel/runtime-corejs3/core-js-stable/instance/bind');
|
|
|
38
39
|
require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
|
|
39
40
|
require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
40
41
|
require('fs');
|
|
41
|
-
require('./create-postcss-config-
|
|
42
|
+
require('./create-postcss-config-bff03b9b.cjs.prod.js');
|
|
42
43
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
43
|
-
require('./package-
|
|
44
|
+
require('./package-053afce2.cjs.prod.js');
|
|
44
45
|
require('./has-jsx-runtime-c3202df5.cjs.prod.js');
|
|
45
46
|
require('./vendors-to-transpile-04a49d40.cjs.prod.js');
|
|
46
47
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
@@ -8,10 +8,11 @@ import { build } from 'vite';
|
|
|
8
8
|
import { packageLocation } from '@commercetools-frontend/assets';
|
|
9
9
|
import { generateTemplate } from '@commercetools-frontend/mc-html-template';
|
|
10
10
|
import { p as paths } from './paths-ded20ae1.esm.js';
|
|
11
|
-
import { v as vitePluginSvgr } from './vite-plugin-svgr-
|
|
11
|
+
import { v as vitePluginSvgr } from './vite-plugin-svgr-e6f228d8.esm.js';
|
|
12
12
|
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
13
13
|
import '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
14
14
|
import 'fs';
|
|
15
|
+
import 'crypto';
|
|
15
16
|
import '@rollup/pluginutils';
|
|
16
17
|
|
|
17
18
|
// This script/function is injected into the `index.html` and used by Vite
|
|
@@ -10,10 +10,11 @@ var vite = require('vite');
|
|
|
10
10
|
var assets = require('@commercetools-frontend/assets');
|
|
11
11
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
12
12
|
var paths = require('./paths-854af5ef.cjs.prod.js');
|
|
13
|
-
var vitePluginSvgr = require('./vite-plugin-svgr-
|
|
13
|
+
var vitePluginSvgr = require('./vite-plugin-svgr-e52c8492.cjs.prod.js');
|
|
14
14
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
15
15
|
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
16
16
|
require('fs');
|
|
17
|
+
require('crypto');
|
|
17
18
|
require('@rollup/pluginutils');
|
|
18
19
|
|
|
19
20
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -10,10 +10,11 @@ var vite = require('vite');
|
|
|
10
10
|
var assets = require('@commercetools-frontend/assets');
|
|
11
11
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
12
12
|
var paths = require('./paths-d1febc82.cjs.dev.js');
|
|
13
|
-
var vitePluginSvgr = require('./vite-plugin-svgr-
|
|
13
|
+
var vitePluginSvgr = require('./vite-plugin-svgr-12a557b9.cjs.dev.js');
|
|
14
14
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
15
15
|
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
16
16
|
require('fs');
|
|
17
|
+
require('crypto');
|
|
17
18
|
require('@rollup/pluginutils');
|
|
18
19
|
|
|
19
20
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vendorsToTranspile = require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
|
|
6
6
|
|
|
7
7
|
// NOTE: This string will be replaced on build time with the package version.
|
|
8
|
-
var version = "22.14.
|
|
8
|
+
var version = "22.14.3";
|
|
9
9
|
|
|
10
10
|
// These exports are deprecated.
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vendorsToTranspile = require('./vendors-to-transpile-04a49d40.cjs.prod.js');
|
|
6
6
|
|
|
7
7
|
// NOTE: This string will be replaced on build time with the package version.
|
|
8
|
-
var version = "22.14.
|
|
8
|
+
var version = "22.14.3";
|
|
9
9
|
|
|
10
10
|
// These exports are deprecated.
|
|
11
11
|
|
|
@@ -10,7 +10,7 @@ var chalk = require('chalk');
|
|
|
10
10
|
var omit = require('lodash/omit');
|
|
11
11
|
var prompts = require('prompts');
|
|
12
12
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
13
|
-
var credentialsStorage$2 = require('./credentials-storage-
|
|
13
|
+
var credentialsStorage$2 = require('./credentials-storage-938a2c84.cjs.dev.js');
|
|
14
14
|
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
15
15
|
var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
16
16
|
var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
@@ -27,7 +27,7 @@ var graphql = require('graphql');
|
|
|
27
27
|
var graphqlRequest = require('graphql-request');
|
|
28
28
|
var constants = require('@commercetools-frontend/constants');
|
|
29
29
|
require('@commercetools/http-user-agent');
|
|
30
|
-
require('./package-
|
|
30
|
+
require('./package-2e29784f.cjs.dev.js');
|
|
31
31
|
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
32
32
|
require('@babel/runtime-corejs3/helpers/createClass');
|
|
33
33
|
require('@babel/runtime-corejs3/core-js-stable/date/now');
|
|
@@ -8,7 +8,7 @@ import chalk from 'chalk';
|
|
|
8
8
|
import omit from 'lodash/omit';
|
|
9
9
|
import prompts from 'prompts';
|
|
10
10
|
import { sanitizeSvg, processConfig } from '@commercetools-frontend/application-config';
|
|
11
|
-
import { C as CredentialsStorage, u as userAgent } from './credentials-storage-
|
|
11
|
+
import { C as CredentialsStorage, u as userAgent } from './credentials-storage-1741ac9c.esm.js';
|
|
12
12
|
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
13
13
|
import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
|
|
14
14
|
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
|
|
@@ -25,7 +25,7 @@ import { print } from 'graphql';
|
|
|
25
25
|
import { GraphQLClient, ClientError } from 'graphql-request';
|
|
26
26
|
import { GRAPHQL_TARGETS } from '@commercetools-frontend/constants';
|
|
27
27
|
import '@commercetools/http-user-agent';
|
|
28
|
-
import './package-
|
|
28
|
+
import './package-2f22c78e.esm.js';
|
|
29
29
|
import '@babel/runtime-corejs3/helpers/classCallCheck';
|
|
30
30
|
import '@babel/runtime-corejs3/helpers/createClass';
|
|
31
31
|
import '@babel/runtime-corejs3/core-js-stable/date/now';
|
|
@@ -10,7 +10,7 @@ var chalk = require('chalk');
|
|
|
10
10
|
var omit = require('lodash/omit');
|
|
11
11
|
var prompts = require('prompts');
|
|
12
12
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
13
|
-
var credentialsStorage$2 = require('./credentials-storage-
|
|
13
|
+
var credentialsStorage$2 = require('./credentials-storage-cb6e2522.cjs.prod.js');
|
|
14
14
|
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
15
15
|
var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
|
|
16
16
|
var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
|
|
@@ -27,7 +27,7 @@ var graphql = require('graphql');
|
|
|
27
27
|
var graphqlRequest = require('graphql-request');
|
|
28
28
|
var constants = require('@commercetools-frontend/constants');
|
|
29
29
|
require('@commercetools/http-user-agent');
|
|
30
|
-
require('./package-
|
|
30
|
+
require('./package-053afce2.cjs.prod.js');
|
|
31
31
|
require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
32
32
|
require('@babel/runtime-corejs3/helpers/createClass');
|
|
33
33
|
require('@babel/runtime-corejs3/core-js-stable/date/now');
|
package/dist/{create-postcss-config-81acd016.cjs.dev.js → create-postcss-config-4c8b1962.cjs.dev.js}
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
4
4
|
var path = require('path');
|
|
5
|
-
var _package = require('./package-
|
|
5
|
+
var _package = require('./package-2e29784f.cjs.dev.js');
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
8
8
|
|
package/dist/{create-postcss-config-eb5e8d83.esm.js → create-postcss-config-6c1280ab.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import { p as pkgJson } from './package-
|
|
3
|
+
import { p as pkgJson } from './package-2f22c78e.esm.js';
|
|
4
4
|
|
|
5
5
|
// This function aims to return the same result as `require.resolve`.
|
|
6
6
|
// However, resolving a path to a `.css` file does not return the real
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
4
4
|
var path = require('path');
|
|
5
|
-
var _package = require('./package-
|
|
5
|
+
var _package = require('./package-053afce2.cjs.prod.js');
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -13,6 +13,7 @@ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
|
|
|
13
13
|
var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
14
14
|
var _endsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
|
|
15
15
|
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
16
|
+
var crypto = require('crypto');
|
|
16
17
|
var path = require('path');
|
|
17
18
|
var ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
|
|
18
19
|
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
@@ -24,7 +25,7 @@ var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
|
24
25
|
var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
25
26
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
26
27
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
27
|
-
var createPostcssConfig = require('./create-postcss-config-
|
|
28
|
+
var createPostcssConfig = require('./create-postcss-config-bff03b9b.cjs.prod.js');
|
|
28
29
|
var hasJsxRuntime = require('./has-jsx-runtime-c3202df5.cjs.prod.js');
|
|
29
30
|
var paths = require('./paths-854af5ef.cjs.prod.js');
|
|
30
31
|
var vendorsToTranspile = require('./vendors-to-transpile-04a49d40.cjs.prod.js');
|
|
@@ -43,6 +44,7 @@ var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInsta
|
|
|
43
44
|
var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
|
|
44
45
|
var _endsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_endsWithInstanceProperty);
|
|
45
46
|
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
|
|
47
|
+
var crypto__default = /*#__PURE__*/_interopDefault(crypto);
|
|
46
48
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
47
49
|
var ReactRefreshWebpackPlugin__default = /*#__PURE__*/_interopDefault(ReactRefreshWebpackPlugin);
|
|
48
50
|
var HtmlWebpackPlugin__default = /*#__PURE__*/_interopDefault(HtmlWebpackPlugin);
|
|
@@ -86,7 +88,6 @@ function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Objec
|
|
|
86
88
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys(Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
87
89
|
// https://babeljs.io/blog/2017/09/11/zero-config-with-babel-macros
|
|
88
90
|
const momentLocalesToKeep = ["de", "de-at", "de-ch", "en-au", "en-ca", "en-gb", "en-ie", "en-in", "en-nz", "en-sg", "es", "es-do", "es-mx", "fr", "pt-br", "zh-cn"];
|
|
89
|
-
let svgoPrefixIdsCount = 0;
|
|
90
91
|
const defaultToggleFlags = {
|
|
91
92
|
generateIndexHtml: true,
|
|
92
93
|
disableCoreJs: false
|
|
@@ -276,18 +277,36 @@ function createWebpackConfigForDevelopment() {
|
|
|
276
277
|
}
|
|
277
278
|
},
|
|
278
279
|
// Avoid collisions with ids in other SVGs,
|
|
279
|
-
// which was causing incorrect gradient directions
|
|
280
|
-
//
|
|
281
|
-
//
|
|
282
|
-
//
|
|
283
|
-
//
|
|
280
|
+
// which was causing incorrect masking, gradient directions, etc
|
|
281
|
+
// this is an ongoing issue with both SVGR and SVGO,
|
|
282
|
+
// https://github.com/svg/svgo/issues/913#issuecomment-369373572
|
|
283
|
+
// see SVGR issues:
|
|
284
|
+
// https://github.com/gregberge/svgr/issues/322
|
|
285
|
+
// https://github.com/gregberge/svgr/issues/210
|
|
286
|
+
// see SVGO issues:
|
|
284
287
|
// https://github.com/svg/svgo/issues/674
|
|
285
288
|
// https://github.com/svg/svgo/issues/1746
|
|
289
|
+
//
|
|
290
|
+
// Initially, a naive counter was implemented based on this github comment:
|
|
291
|
+
// https://github.com/svg/svgo/issues/1746#issuecomment-1803600573
|
|
292
|
+
// But while that implementation insured id’s that are unique,
|
|
293
|
+
// it did not work in cases where the id is both declared and referenced in the same file,
|
|
294
|
+
// because the refernce gets a separate unique ID (a different number from the counter).
|
|
295
|
+
//
|
|
296
|
+
// The current implementation is based on this github comment:
|
|
297
|
+
// https://github.com/svg/svgo/issues/913#issuecomment-369373572
|
|
298
|
+
// Generates a hash of the filepath of the svg file, resulting in a prefix which is:
|
|
299
|
+
// - Short,
|
|
300
|
+
// - With characters valid for IDs,
|
|
301
|
+
// - The same within a file,
|
|
302
|
+
// - And different in different files.
|
|
286
303
|
{
|
|
287
304
|
name: 'prefixIds',
|
|
288
305
|
params: {
|
|
289
306
|
delim: '',
|
|
290
|
-
prefix: () =>
|
|
307
|
+
prefix: (_, info) => "svg".concat(crypto__default["default"].createHash('shake256', {
|
|
308
|
+
outputLength: 6
|
|
309
|
+
}).update(info.path || '').digest('hex'))
|
|
291
310
|
}
|
|
292
311
|
}]
|
|
293
312
|
}
|
|
@@ -11,6 +11,7 @@ import _filterInstanceProperty from '@babel/runtime-corejs3/core-js-stable/insta
|
|
|
11
11
|
import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
|
12
12
|
import _endsWithInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/ends-with';
|
|
13
13
|
import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
14
|
+
import crypto from 'crypto';
|
|
14
15
|
import path from 'path';
|
|
15
16
|
import ReactRefreshWebpackPlugin from '@pmmmwh/react-refresh-webpack-plugin';
|
|
16
17
|
import HtmlWebpackPlugin from 'html-webpack-plugin';
|
|
@@ -22,7 +23,7 @@ import _createClass from '@babel/runtime-corejs3/helpers/esm/createClass';
|
|
|
22
23
|
import _Object$assign from '@babel/runtime-corejs3/core-js-stable/object/assign';
|
|
23
24
|
import { processConfig } from '@commercetools-frontend/application-config';
|
|
24
25
|
import { replaceHtmlPlaceholders } from '@commercetools-frontend/mc-html-template';
|
|
25
|
-
import { c as createPostcssConfig } from './create-postcss-config-
|
|
26
|
+
import { c as createPostcssConfig } from './create-postcss-config-6c1280ab.esm.js';
|
|
26
27
|
import { h as hasJsxRuntime } from './has-jsx-runtime-e3ecb09b.esm.js';
|
|
27
28
|
import { p as paths } from './paths-ded20ae1.esm.js';
|
|
28
29
|
import { v as vendorsToTranspile } from './vendors-to-transpile-7dc84a72.esm.js';
|
|
@@ -62,7 +63,6 @@ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymb
|
|
|
62
63
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context6 = ownKeys(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context7 = ownKeys(Object(t))).call(_context7, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
63
64
|
// https://babeljs.io/blog/2017/09/11/zero-config-with-babel-macros
|
|
64
65
|
const momentLocalesToKeep = ["de", "de-at", "de-ch", "en-au", "en-ca", "en-gb", "en-ie", "en-in", "en-nz", "en-sg", "es", "es-do", "es-mx", "fr", "pt-br", "zh-cn"];
|
|
65
|
-
let svgoPrefixIdsCount = 0;
|
|
66
66
|
const defaultToggleFlags = {
|
|
67
67
|
generateIndexHtml: true,
|
|
68
68
|
disableCoreJs: false
|
|
@@ -252,18 +252,36 @@ function createWebpackConfigForDevelopment() {
|
|
|
252
252
|
}
|
|
253
253
|
},
|
|
254
254
|
// Avoid collisions with ids in other SVGs,
|
|
255
|
-
// which was causing incorrect gradient directions
|
|
256
|
-
//
|
|
257
|
-
//
|
|
258
|
-
//
|
|
259
|
-
//
|
|
255
|
+
// which was causing incorrect masking, gradient directions, etc
|
|
256
|
+
// this is an ongoing issue with both SVGR and SVGO,
|
|
257
|
+
// https://github.com/svg/svgo/issues/913#issuecomment-369373572
|
|
258
|
+
// see SVGR issues:
|
|
259
|
+
// https://github.com/gregberge/svgr/issues/322
|
|
260
|
+
// https://github.com/gregberge/svgr/issues/210
|
|
261
|
+
// see SVGO issues:
|
|
260
262
|
// https://github.com/svg/svgo/issues/674
|
|
261
263
|
// https://github.com/svg/svgo/issues/1746
|
|
264
|
+
//
|
|
265
|
+
// Initially, a naive counter was implemented based on this github comment:
|
|
266
|
+
// https://github.com/svg/svgo/issues/1746#issuecomment-1803600573
|
|
267
|
+
// But while that implementation insured id’s that are unique,
|
|
268
|
+
// it did not work in cases where the id is both declared and referenced in the same file,
|
|
269
|
+
// because the refernce gets a separate unique ID (a different number from the counter).
|
|
270
|
+
//
|
|
271
|
+
// The current implementation is based on this github comment:
|
|
272
|
+
// https://github.com/svg/svgo/issues/913#issuecomment-369373572
|
|
273
|
+
// Generates a hash of the filepath of the svg file, resulting in a prefix which is:
|
|
274
|
+
// - Short,
|
|
275
|
+
// - With characters valid for IDs,
|
|
276
|
+
// - The same within a file,
|
|
277
|
+
// - And different in different files.
|
|
262
278
|
{
|
|
263
279
|
name: 'prefixIds',
|
|
264
280
|
params: {
|
|
265
281
|
delim: '',
|
|
266
|
-
prefix: () =>
|
|
282
|
+
prefix: (_, info) => "svg".concat(crypto.createHash('shake256', {
|
|
283
|
+
outputLength: 6
|
|
284
|
+
}).update(info.path || '').digest('hex'))
|
|
267
285
|
}
|
|
268
286
|
}]
|
|
269
287
|
}
|
|
@@ -13,6 +13,7 @@ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
|
|
|
13
13
|
var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
14
14
|
var _endsWithInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/ends-with');
|
|
15
15
|
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
16
|
+
var crypto = require('crypto');
|
|
16
17
|
var path = require('path');
|
|
17
18
|
var ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
|
|
18
19
|
var HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
@@ -24,7 +25,7 @@ var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
|
24
25
|
var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
25
26
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
26
27
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
27
|
-
var createPostcssConfig = require('./create-postcss-config-
|
|
28
|
+
var createPostcssConfig = require('./create-postcss-config-4c8b1962.cjs.dev.js');
|
|
28
29
|
var hasJsxRuntime = require('./has-jsx-runtime-aa5d21ee.cjs.dev.js');
|
|
29
30
|
var paths = require('./paths-d1febc82.cjs.dev.js');
|
|
30
31
|
var vendorsToTranspile = require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
|
|
@@ -43,6 +44,7 @@ var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInsta
|
|
|
43
44
|
var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
|
|
44
45
|
var _endsWithInstanceProperty__default = /*#__PURE__*/_interopDefault(_endsWithInstanceProperty);
|
|
45
46
|
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefault(_concatInstanceProperty);
|
|
47
|
+
var crypto__default = /*#__PURE__*/_interopDefault(crypto);
|
|
46
48
|
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
47
49
|
var ReactRefreshWebpackPlugin__default = /*#__PURE__*/_interopDefault(ReactRefreshWebpackPlugin);
|
|
48
50
|
var HtmlWebpackPlugin__default = /*#__PURE__*/_interopDefault(HtmlWebpackPlugin);
|
|
@@ -86,7 +88,6 @@ function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Objec
|
|
|
86
88
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context6, _context7; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys(Object(t), !0)).call(_context6, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys(Object(t))).call(_context7, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
|
|
87
89
|
// https://babeljs.io/blog/2017/09/11/zero-config-with-babel-macros
|
|
88
90
|
const momentLocalesToKeep = ["de", "de-at", "de-ch", "en-au", "en-ca", "en-gb", "en-ie", "en-in", "en-nz", "en-sg", "es", "es-do", "es-mx", "fr", "pt-br", "zh-cn"];
|
|
89
|
-
let svgoPrefixIdsCount = 0;
|
|
90
91
|
const defaultToggleFlags = {
|
|
91
92
|
generateIndexHtml: true,
|
|
92
93
|
disableCoreJs: false
|
|
@@ -276,18 +277,36 @@ function createWebpackConfigForDevelopment() {
|
|
|
276
277
|
}
|
|
277
278
|
},
|
|
278
279
|
// Avoid collisions with ids in other SVGs,
|
|
279
|
-
// which was causing incorrect gradient directions
|
|
280
|
-
//
|
|
281
|
-
//
|
|
282
|
-
//
|
|
283
|
-
//
|
|
280
|
+
// which was causing incorrect masking, gradient directions, etc
|
|
281
|
+
// this is an ongoing issue with both SVGR and SVGO,
|
|
282
|
+
// https://github.com/svg/svgo/issues/913#issuecomment-369373572
|
|
283
|
+
// see SVGR issues:
|
|
284
|
+
// https://github.com/gregberge/svgr/issues/322
|
|
285
|
+
// https://github.com/gregberge/svgr/issues/210
|
|
286
|
+
// see SVGO issues:
|
|
284
287
|
// https://github.com/svg/svgo/issues/674
|
|
285
288
|
// https://github.com/svg/svgo/issues/1746
|
|
289
|
+
//
|
|
290
|
+
// Initially, a naive counter was implemented based on this github comment:
|
|
291
|
+
// https://github.com/svg/svgo/issues/1746#issuecomment-1803600573
|
|
292
|
+
// But while that implementation insured id’s that are unique,
|
|
293
|
+
// it did not work in cases where the id is both declared and referenced in the same file,
|
|
294
|
+
// because the refernce gets a separate unique ID (a different number from the counter).
|
|
295
|
+
//
|
|
296
|
+
// The current implementation is based on this github comment:
|
|
297
|
+
// https://github.com/svg/svgo/issues/913#issuecomment-369373572
|
|
298
|
+
// Generates a hash of the filepath of the svg file, resulting in a prefix which is:
|
|
299
|
+
// - Short,
|
|
300
|
+
// - With characters valid for IDs,
|
|
301
|
+
// - The same within a file,
|
|
302
|
+
// - And different in different files.
|
|
286
303
|
{
|
|
287
304
|
name: 'prefixIds',
|
|
288
305
|
params: {
|
|
289
306
|
delim: '',
|
|
290
|
-
prefix: () =>
|
|
307
|
+
prefix: (_, info) => "svg".concat(crypto__default["default"].createHash('shake256', {
|
|
308
|
+
outputLength: 6
|
|
309
|
+
}).update(info.path || '').digest('hex'))
|
|
291
310
|
}
|
|
292
311
|
}]
|
|
293
312
|
}
|