@commercetools-frontend/mc-scripts 21.8.1 → 21.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +22 -17
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +22 -17
- package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +22 -17
- package/dist/{build-cac1a859.esm.js → build-194c0f0e.esm.js} +3 -3
- package/dist/{build-3521a4f3.cjs.dev.js → build-5a0744fe.cjs.dev.js} +3 -3
- package/dist/{build-acb29f36.cjs.prod.js → build-c09ffe9f.cjs.prod.js} +3 -3
- package/dist/{build-vite-6c987a60.cjs.dev.js → build-vite-3b82522e.cjs.dev.js} +44 -2
- package/dist/{build-vite-a9602b19.esm.js → build-vite-93abdc95.esm.js} +44 -2
- package/dist/{build-vite-76d44332.cjs.prod.js → build-vite-b7cd993a.cjs.prod.js} +44 -2
- 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-a6565737.esm.js → config-sync-56a5d505.esm.js} +2 -2
- package/dist/{config-sync-9540c47f.cjs.dev.js → config-sync-90d9f475.cjs.dev.js} +2 -2
- package/dist/{config-sync-7bd51e9b.cjs.prod.js → config-sync-c9f2d1ea.cjs.prod.js} +2 -2
- package/dist/{create-postcss-config-07259760.cjs.dev.js → create-postcss-config-583a2d68.cjs.dev.js} +1 -1
- package/dist/{create-postcss-config-9e14f015.esm.js → create-postcss-config-869bd4ab.esm.js} +1 -1
- package/dist/{create-postcss-config-c1122bfa.cjs.prod.js → create-postcss-config-d0b0712b.cjs.prod.js} +1 -1
- package/dist/{create-webpack-config-for-development-20fbe5a5.cjs.dev.js → create-webpack-config-for-development-4279881f.cjs.dev.js} +5 -4
- package/dist/{create-webpack-config-for-development-eb1432fe.esm.js → create-webpack-config-for-development-6e035844.esm.js} +5 -4
- package/dist/{create-webpack-config-for-development-b70e9af1.cjs.prod.js → create-webpack-config-for-development-9943b0b1.cjs.prod.js} +5 -4
- package/dist/{create-webpack-config-for-production-331c8877.esm.js → create-webpack-config-for-production-9598634c.esm.js} +5 -4
- package/dist/{create-webpack-config-for-production-e894ffc1.cjs.prod.js → create-webpack-config-for-production-c2d84600.cjs.prod.js} +5 -4
- package/dist/{create-webpack-config-for-production-4e58ee43.cjs.dev.js → create-webpack-config-for-production-cdb23542.cjs.dev.js} +5 -4
- package/dist/declarations/src/config/moment-locales.d.ts +2 -0
- package/dist/declarations/src/generated/settings.d.ts +110 -8
- package/dist/declarations/src/vite-plugins/vite-plugin-custom-application.d.ts +4 -0
- package/dist/declarations/src/vite-plugins/vite-plugin-dynamic-base-assets-globals.d.ts +3 -0
- package/dist/declarations/src/vite-plugins/vite-plugin-svgr.d.ts +3 -0
- package/dist/{login-e943a53a.cjs.prod.js → login-1f08ef78.cjs.prod.js} +2 -2
- package/dist/{login-435f4c2b.esm.js → login-c491f3b4.esm.js} +2 -2
- package/dist/{login-d1cbdeca.cjs.dev.js → login-f183d706.cjs.dev.js} +2 -2
- package/dist/{package-fab41a01.cjs.prod.js → package-16806805.cjs.prod.js} +25 -21
- package/dist/{package-8a5733b4.cjs.dev.js → package-47f66a69.cjs.dev.js} +25 -21
- package/dist/{package-8b6676c0.esm.js → package-8bf24527.esm.js} +25 -21
- package/dist/{start-52af291f.esm.js → start-2bbf8459.esm.js} +3 -3
- package/dist/{start-dfef24e1.cjs.dev.js → start-65562171.cjs.dev.js} +3 -3
- package/dist/{start-086879f3.cjs.prod.js → start-b4c252fa.cjs.prod.js} +3 -3
- package/dist/{start-vite-737bacca.cjs.dev.js → start-vite-22de08dc.cjs.dev.js} +7 -5
- package/dist/{start-vite-ec5d40b5.esm.js → start-vite-dc046cba.esm.js} +7 -5
- package/dist/{start-vite-b0f58ae4.cjs.prod.js → start-vite-fe13330b.cjs.prod.js} +7 -5
- package/dist/{user-agent-7d6d1d4a.esm.js → user-agent-d4180a88.esm.js} +1 -1
- package/dist/{user-agent-94518666.cjs.prod.js → user-agent-d9f1c07f.cjs.prod.js} +1 -1
- package/dist/{user-agent-866e4833.cjs.dev.js → user-agent-e10cefc1.cjs.dev.js} +1 -1
- package/dist/vite-plugin-svgr-4205f2b5.cjs.dev.js +110 -0
- package/dist/vite-plugin-svgr-eb8524fa.esm.js +85 -0
- package/dist/vite-plugin-svgr-f3bbedbe.cjs.prod.js +110 -0
- package/package.json +25 -21
- 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 +4 -4
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +4 -4
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +4 -4
|
@@ -10,9 +10,36 @@ import pluginReact from '@vitejs/plugin-react';
|
|
|
10
10
|
import { generateTemplate } from '@commercetools-frontend/mc-html-template';
|
|
11
11
|
import { packageLocation } from '@commercetools-frontend/assets';
|
|
12
12
|
import { p as paths } from './paths-ed23d5a1.esm.js';
|
|
13
|
+
import { v as vitePluginSvgr } from './vite-plugin-svgr-eb8524fa.esm.js';
|
|
13
14
|
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
14
15
|
import '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
15
16
|
import 'fs';
|
|
17
|
+
import '@rollup/pluginutils';
|
|
18
|
+
|
|
19
|
+
// This script/function is injected into the `index.html` and used by Vite
|
|
20
|
+
// on runtime to build the assets URL (for example when using a separate CDN for the assets).
|
|
21
|
+
// Inspired by https://github.com/vitejs/vite/blob/main/playground/assets/vite.config-runtime-base.js
|
|
22
|
+
var dynamicBaseAssetsCode = "globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;";
|
|
23
|
+
|
|
24
|
+
function vitePluginDynamicBaseAssetsGlobals() {
|
|
25
|
+
return {
|
|
26
|
+
name: 'dynamic-base-assets-globals',
|
|
27
|
+
transformIndexHtml: function transformIndexHtml(html, ctx) {
|
|
28
|
+
if (ctx.bundle) {
|
|
29
|
+
// Only inject during build
|
|
30
|
+
return [{
|
|
31
|
+
tag: 'script',
|
|
32
|
+
attrs: {
|
|
33
|
+
type: 'module'
|
|
34
|
+
},
|
|
35
|
+
children: dynamicBaseAssetsCode
|
|
36
|
+
}];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return html;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
16
43
|
|
|
17
44
|
function run() {
|
|
18
45
|
return _run.apply(this, arguments);
|
|
@@ -44,13 +71,14 @@ function _run() {
|
|
|
44
71
|
_context.next = 7;
|
|
45
72
|
return build({
|
|
46
73
|
root: paths.appRoot,
|
|
74
|
+
base: './',
|
|
75
|
+
// <-- Important to allow configuring the runtime base path.
|
|
47
76
|
define: {
|
|
48
77
|
'process.env.DEBUG': _JSON$stringify(false),
|
|
49
78
|
'process.env.NODE_ENV': _JSON$stringify('production')
|
|
50
79
|
},
|
|
51
80
|
build: {
|
|
52
81
|
outDir: 'public',
|
|
53
|
-
assetsDir: '.',
|
|
54
82
|
rollupOptions: {
|
|
55
83
|
// This is necessary to instruct Vite that the `index.html` (template)
|
|
56
84
|
// is located in the `/public` folder.
|
|
@@ -62,12 +90,26 @@ function _run() {
|
|
|
62
90
|
server: {
|
|
63
91
|
port: DEFAULT_PORT
|
|
64
92
|
},
|
|
93
|
+
experimental: {
|
|
94
|
+
// https://vitejs.dev/guide/build.html#advanced-base-options
|
|
95
|
+
renderBuiltUrl: function renderBuiltUrl(filename, _ref) {
|
|
96
|
+
var hostType = _ref.hostType;
|
|
97
|
+
|
|
98
|
+
if (hostType === 'html') {
|
|
99
|
+
return "__CDN_URL__".concat(filename);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
runtime: "window.__toCdnUrl(".concat(_JSON$stringify(filename), ")")
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
},
|
|
65
107
|
plugins: [pluginGraphql(), pluginReact({
|
|
66
108
|
jsxImportSource: '@emotion/react',
|
|
67
109
|
babel: {
|
|
68
110
|
plugins: ['@emotion/babel-plugin']
|
|
69
111
|
}
|
|
70
|
-
})]
|
|
112
|
+
}), vitePluginSvgr(), vitePluginDynamicBaseAssetsGlobals()]
|
|
71
113
|
});
|
|
72
114
|
|
|
73
115
|
case 7:
|
|
@@ -12,9 +12,11 @@ var pluginReact = require('@vitejs/plugin-react');
|
|
|
12
12
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
13
13
|
var assets = require('@commercetools-frontend/assets');
|
|
14
14
|
var paths = require('./paths-76b66e74.cjs.prod.js');
|
|
15
|
+
var vitePluginSvgr = require('./vite-plugin-svgr-f3bbedbe.cjs.prod.js');
|
|
15
16
|
require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
16
17
|
require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
17
18
|
require('fs');
|
|
19
|
+
require('@rollup/pluginutils');
|
|
18
20
|
|
|
19
21
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
20
22
|
|
|
@@ -26,6 +28,31 @@ var path__default = /*#__PURE__*/_interopDefault(path);
|
|
|
26
28
|
var pluginGraphql__default = /*#__PURE__*/_interopDefault(pluginGraphql);
|
|
27
29
|
var pluginReact__default = /*#__PURE__*/_interopDefault(pluginReact);
|
|
28
30
|
|
|
31
|
+
// This script/function is injected into the `index.html` and used by Vite
|
|
32
|
+
// on runtime to build the assets URL (for example when using a separate CDN for the assets).
|
|
33
|
+
// Inspired by https://github.com/vitejs/vite/blob/main/playground/assets/vite.config-runtime-base.js
|
|
34
|
+
var dynamicBaseAssetsCode = "globalThis.__toCdnUrl = filePath => window.app.cdnUrl.replace(/\\/$/, '') + '/' + filePath;";
|
|
35
|
+
|
|
36
|
+
function vitePluginDynamicBaseAssetsGlobals() {
|
|
37
|
+
return {
|
|
38
|
+
name: 'dynamic-base-assets-globals',
|
|
39
|
+
transformIndexHtml: function transformIndexHtml(html, ctx) {
|
|
40
|
+
if (ctx.bundle) {
|
|
41
|
+
// Only inject during build
|
|
42
|
+
return [{
|
|
43
|
+
tag: 'script',
|
|
44
|
+
attrs: {
|
|
45
|
+
type: 'module'
|
|
46
|
+
},
|
|
47
|
+
children: dynamicBaseAssetsCode
|
|
48
|
+
}];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return html;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
29
56
|
function run() {
|
|
30
57
|
return _run.apply(this, arguments);
|
|
31
58
|
}
|
|
@@ -56,13 +83,14 @@ function _run() {
|
|
|
56
83
|
_context.next = 7;
|
|
57
84
|
return vite.build({
|
|
58
85
|
root: paths.paths.appRoot,
|
|
86
|
+
base: './',
|
|
87
|
+
// <-- Important to allow configuring the runtime base path.
|
|
59
88
|
define: {
|
|
60
89
|
'process.env.DEBUG': _JSON$stringify__default["default"](false),
|
|
61
90
|
'process.env.NODE_ENV': _JSON$stringify__default["default"]('production')
|
|
62
91
|
},
|
|
63
92
|
build: {
|
|
64
93
|
outDir: 'public',
|
|
65
|
-
assetsDir: '.',
|
|
66
94
|
rollupOptions: {
|
|
67
95
|
// This is necessary to instruct Vite that the `index.html` (template)
|
|
68
96
|
// is located in the `/public` folder.
|
|
@@ -74,12 +102,26 @@ function _run() {
|
|
|
74
102
|
server: {
|
|
75
103
|
port: DEFAULT_PORT
|
|
76
104
|
},
|
|
105
|
+
experimental: {
|
|
106
|
+
// https://vitejs.dev/guide/build.html#advanced-base-options
|
|
107
|
+
renderBuiltUrl: function renderBuiltUrl(filename, _ref) {
|
|
108
|
+
var hostType = _ref.hostType;
|
|
109
|
+
|
|
110
|
+
if (hostType === 'html') {
|
|
111
|
+
return "__CDN_URL__".concat(filename);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return {
|
|
115
|
+
runtime: "window.__toCdnUrl(".concat(_JSON$stringify__default["default"](filename), ")")
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
},
|
|
77
119
|
plugins: [pluginGraphql__default["default"](), pluginReact__default["default"]({
|
|
78
120
|
jsxImportSource: '@emotion/react',
|
|
79
121
|
babel: {
|
|
80
122
|
plugins: ['@emotion/babel-plugin']
|
|
81
123
|
}
|
|
82
|
-
})]
|
|
124
|
+
}), vitePluginSvgr.vitePluginSvgr(), vitePluginDynamicBaseAssetsGlobals()]
|
|
83
125
|
});
|
|
84
126
|
|
|
85
127
|
case 7:
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vendorsToTranspile = require('./vendors-to-transpile-b51af5d3.cjs.dev.js');
|
|
6
6
|
|
|
7
7
|
// NOTE: This string will be replaced on build time with the package version.
|
|
8
|
-
var version = "21.
|
|
8
|
+
var version = "21.11.0";
|
|
9
9
|
|
|
10
10
|
// These exports are deprecated.
|
|
11
11
|
function createWebpackConfigForDevelopment(options) {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vendorsToTranspile = require('./vendors-to-transpile-367e0ba8.cjs.prod.js');
|
|
6
6
|
|
|
7
7
|
// NOTE: This string will be replaced on build time with the package version.
|
|
8
|
-
var version = "21.
|
|
8
|
+
var version = "21.11.0";
|
|
9
9
|
|
|
10
10
|
// These exports are deprecated.
|
|
11
11
|
function createWebpackConfigForDevelopment(options) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { v as vendorsToTranspile } from './vendors-to-transpile-68e03526.esm.js';
|
|
2
2
|
|
|
3
3
|
// NOTE: This string will be replaced on build time with the package version.
|
|
4
|
-
var version = "21.
|
|
4
|
+
var version = "21.11.0";
|
|
5
5
|
|
|
6
6
|
// These exports are deprecated.
|
|
7
7
|
function createWebpackConfigForDevelopment(options) {
|
|
@@ -9,7 +9,7 @@ import omit from 'lodash/omit';
|
|
|
9
9
|
import prompts from 'prompts';
|
|
10
10
|
import chalk from 'chalk';
|
|
11
11
|
import { processConfig } from '@commercetools-frontend/application-config';
|
|
12
|
-
import { u as userAgent, C as CredentialsStorage } from './user-agent-
|
|
12
|
+
import { u as userAgent, C as CredentialsStorage } from './user-agent-d4180a88.esm.js';
|
|
13
13
|
import { GraphQLClient } from 'graphql-request';
|
|
14
14
|
import { GRAPHQL_TARGETS } from '@commercetools-frontend/constants';
|
|
15
15
|
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
|
|
@@ -31,7 +31,7 @@ import 'fs';
|
|
|
31
31
|
import 'path';
|
|
32
32
|
import 'os';
|
|
33
33
|
import '@commercetools/http-user-agent';
|
|
34
|
-
import './package-
|
|
34
|
+
import './package-8bf24527.esm.js';
|
|
35
35
|
|
|
36
36
|
var FetchCustomApplicationFromCli = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchCustomApplicationFromCli" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "entryPointUriPath" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "organizationExtensionForCustomApplication" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "entryPointUriPath" }, value: { kind: "Variable", name: { kind: "Name", value: "entryPointUriPath" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "organizationId" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "application" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "entryPointUriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "description" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "url" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "icon" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "oAuthScopes" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "mainMenuLink" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "defaultLabel" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "submenuLinks" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "defaultLabel" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }], loc: { start: 0, end: 647, source: { body: "query FetchCustomApplicationFromCli($entryPointUriPath: String!) {\n organizationExtensionForCustomApplication(\n entryPointUriPath: $entryPointUriPath\n ) {\n organizationId\n application {\n id\n entryPointUriPath\n name\n description\n url\n icon\n permissions {\n name\n oAuthScopes\n }\n mainMenuLink {\n defaultLabel\n permissions\n labelAllLocales {\n locale\n value\n }\n }\n submenuLinks {\n uriPath\n defaultLabel\n permissions\n labelAllLocales {\n locale\n value\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
37
37
|
var UpdateCustomApplicationFromCli = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCustomApplicationFromCli" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "organizationId" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomApplicationDraftDataInput" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "applicationId" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomApplication" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "organizationId" }, value: { kind: "Variable", name: { kind: "Name", value: "organizationId" } } }, { kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }, { kind: "Argument", name: { kind: "Name", value: "applicationId" }, value: { kind: "Variable", name: { kind: "Name", value: "applicationId" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 268, source: { body: "mutation UpdateCustomApplicationFromCli(\n $organizationId: String!\n $data: CustomApplicationDraftDataInput!\n $applicationId: ID!\n) {\n updateCustomApplication(\n organizationId: $organizationId\n data: $data\n applicationId: $applicationId\n ) {\n id\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
@@ -11,7 +11,7 @@ var omit = require('lodash/omit');
|
|
|
11
11
|
var prompts = require('prompts');
|
|
12
12
|
var chalk = require('chalk');
|
|
13
13
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
14
|
-
var userAgent = require('./user-agent-
|
|
14
|
+
var userAgent = require('./user-agent-e10cefc1.cjs.dev.js');
|
|
15
15
|
var graphqlRequest = require('graphql-request');
|
|
16
16
|
var constants = require('@commercetools-frontend/constants');
|
|
17
17
|
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -33,7 +33,7 @@ require('fs');
|
|
|
33
33
|
require('path');
|
|
34
34
|
require('os');
|
|
35
35
|
require('@commercetools/http-user-agent');
|
|
36
|
-
require('./package-
|
|
36
|
+
require('./package-47f66a69.cjs.dev.js');
|
|
37
37
|
|
|
38
38
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
39
39
|
|
|
@@ -11,7 +11,7 @@ var omit = require('lodash/omit');
|
|
|
11
11
|
var prompts = require('prompts');
|
|
12
12
|
var chalk = require('chalk');
|
|
13
13
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
14
|
-
var userAgent = require('./user-agent-
|
|
14
|
+
var userAgent = require('./user-agent-d9f1c07f.cjs.prod.js');
|
|
15
15
|
var graphqlRequest = require('graphql-request');
|
|
16
16
|
var constants = require('@commercetools-frontend/constants');
|
|
17
17
|
var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
|
|
@@ -33,7 +33,7 @@ require('fs');
|
|
|
33
33
|
require('path');
|
|
34
34
|
require('os');
|
|
35
35
|
require('@commercetools/http-user-agent');
|
|
36
|
-
require('./package-
|
|
36
|
+
require('./package-16806805.cjs.prod.js');
|
|
37
37
|
|
|
38
38
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
39
39
|
|
package/dist/{create-postcss-config-07259760.cjs.dev.js → create-postcss-config-583a2d68.cjs.dev.js}
RENAMED
|
@@ -4,7 +4,7 @@ var _toConsumableArray = require('@babel/runtime-corejs3/helpers/toConsumableArr
|
|
|
4
4
|
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
5
5
|
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
6
6
|
var path = require('path');
|
|
7
|
-
var _package = require('./package-
|
|
7
|
+
var _package = require('./package-47f66a69.cjs.dev.js');
|
|
8
8
|
|
|
9
9
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
10
10
|
|
package/dist/{create-postcss-config-9e14f015.esm.js → create-postcss-config-869bd4ab.esm.js}
RENAMED
|
@@ -2,7 +2,7 @@ import _toConsumableArray from '@babel/runtime-corejs3/helpers/esm/toConsumableA
|
|
|
2
2
|
import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
|
|
3
3
|
import _concatInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/concat';
|
|
4
4
|
import path from 'path';
|
|
5
|
-
import { p as pkgJson } from './package-
|
|
5
|
+
import { p as pkgJson } from './package-8bf24527.esm.js';
|
|
6
6
|
|
|
7
7
|
// This function aims to return the same result as `require.resolve`.
|
|
8
8
|
// However, resolving a path to a `.css` file does not return the real
|
|
@@ -4,7 +4,7 @@ var _toConsumableArray = require('@babel/runtime-corejs3/helpers/toConsumableArr
|
|
|
4
4
|
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
5
5
|
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat');
|
|
6
6
|
var path = require('path');
|
|
7
|
-
var _package = require('./package-
|
|
7
|
+
var _package = require('./package-16806805.cjs.prod.js');
|
|
8
8
|
|
|
9
9
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
10
10
|
|
|
@@ -26,7 +26,7 @@ var applicationConfig = require('@commercetools-frontend/application-config');
|
|
|
26
26
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
27
27
|
var paths = require('./paths-16823f56.cjs.dev.js');
|
|
28
28
|
var vendorsToTranspile = require('./vendors-to-transpile-b51af5d3.cjs.dev.js');
|
|
29
|
-
var createPostcssConfig = require('./create-postcss-config-
|
|
29
|
+
var createPostcssConfig = require('./create-postcss-config-583a2d68.cjs.dev.js');
|
|
30
30
|
var hasJsxRuntime = require('./has-jsx-runtime-3d4bb633.cjs.dev.js');
|
|
31
31
|
|
|
32
32
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -88,6 +88,8 @@ var LocalHtmlWebpackPlugin = /*#__PURE__*/function () {
|
|
|
88
88
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
89
89
|
|
|
90
90
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context6, _context7; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys(Object(source), !0)).call(_context6, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys(Object(source))).call(_context7, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
91
|
+
|
|
92
|
+
var 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", "zh-cn"];
|
|
91
93
|
var defaultToggleFlags = {
|
|
92
94
|
generateIndexHtml: true,
|
|
93
95
|
disableCoreJs: false
|
|
@@ -223,10 +225,9 @@ function createWebpackConfigForDevelopment() {
|
|
|
223
225
|
inject: false,
|
|
224
226
|
filename: paths.paths.appIndexHtml,
|
|
225
227
|
template: require.resolve('@commercetools-frontend/mc-html-template/webpack')
|
|
226
|
-
}), mergedOptions.toggleFlags.generateIndexHtml && new LocalHtmlWebpackPlugin(), //
|
|
227
|
-
// (`en` is built into Moment and can't be removed).
|
|
228
|
+
}), mergedOptions.toggleFlags.generateIndexHtml && new LocalHtmlWebpackPlugin(), // Only keep locales that are available in the Merchant Center.
|
|
228
229
|
new MomentLocalesPlugin__default["default"]({
|
|
229
|
-
localesToKeep:
|
|
230
|
+
localesToKeep: momentLocalesToKeep
|
|
230
231
|
}), // This is necessary to emit hot updates (CSS and Fast Refresh):
|
|
231
232
|
new webpack__default["default"].HotModuleReplacementPlugin(), // Experimental hot reloading for React .
|
|
232
233
|
// https://github.com/facebook/react/tree/master/packages/react-refresh
|
|
@@ -24,7 +24,7 @@ import { processConfig } from '@commercetools-frontend/application-config';
|
|
|
24
24
|
import { replaceHtmlPlaceholders } from '@commercetools-frontend/mc-html-template';
|
|
25
25
|
import { p as paths } from './paths-ed23d5a1.esm.js';
|
|
26
26
|
import { v as vendorsToTranspile } from './vendors-to-transpile-68e03526.esm.js';
|
|
27
|
-
import { c as createPostcssConfig } from './create-postcss-config-
|
|
27
|
+
import { c as createPostcssConfig } from './create-postcss-config-869bd4ab.esm.js';
|
|
28
28
|
import { h as hasJsxRuntime } from './has-jsx-runtime-8314226e.esm.js';
|
|
29
29
|
|
|
30
30
|
var LocalHtmlWebpackPlugin = /*#__PURE__*/function () {
|
|
@@ -64,6 +64,8 @@ var LocalHtmlWebpackPlugin = /*#__PURE__*/function () {
|
|
|
64
64
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
65
65
|
|
|
66
66
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context6, _context7; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context6 = ownKeys(Object(source), !0)).call(_context6, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context7 = ownKeys(Object(source))).call(_context7, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
67
|
+
|
|
68
|
+
var 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", "zh-cn"];
|
|
67
69
|
var defaultToggleFlags = {
|
|
68
70
|
generateIndexHtml: true,
|
|
69
71
|
disableCoreJs: false
|
|
@@ -199,10 +201,9 @@ function createWebpackConfigForDevelopment() {
|
|
|
199
201
|
inject: false,
|
|
200
202
|
filename: paths.appIndexHtml,
|
|
201
203
|
template: require.resolve('@commercetools-frontend/mc-html-template/webpack')
|
|
202
|
-
}), mergedOptions.toggleFlags.generateIndexHtml && new LocalHtmlWebpackPlugin(), //
|
|
203
|
-
// (`en` is built into Moment and can't be removed).
|
|
204
|
+
}), mergedOptions.toggleFlags.generateIndexHtml && new LocalHtmlWebpackPlugin(), // Only keep locales that are available in the Merchant Center.
|
|
204
205
|
new MomentLocalesPlugin({
|
|
205
|
-
localesToKeep:
|
|
206
|
+
localesToKeep: momentLocalesToKeep
|
|
206
207
|
}), // This is necessary to emit hot updates (CSS and Fast Refresh):
|
|
207
208
|
new webpack.HotModuleReplacementPlugin(), // Experimental hot reloading for React .
|
|
208
209
|
// https://github.com/facebook/react/tree/master/packages/react-refresh
|
|
@@ -26,7 +26,7 @@ var applicationConfig = require('@commercetools-frontend/application-config');
|
|
|
26
26
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
27
27
|
var paths = require('./paths-76b66e74.cjs.prod.js');
|
|
28
28
|
var vendorsToTranspile = require('./vendors-to-transpile-367e0ba8.cjs.prod.js');
|
|
29
|
-
var createPostcssConfig = require('./create-postcss-config-
|
|
29
|
+
var createPostcssConfig = require('./create-postcss-config-d0b0712b.cjs.prod.js');
|
|
30
30
|
var hasJsxRuntime = require('./has-jsx-runtime-0b03b72e.cjs.prod.js');
|
|
31
31
|
|
|
32
32
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -88,6 +88,8 @@ var LocalHtmlWebpackPlugin = /*#__PURE__*/function () {
|
|
|
88
88
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
89
89
|
|
|
90
90
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context6, _context7; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context6 = ownKeys(Object(source), !0)).call(_context6, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context7 = ownKeys(Object(source))).call(_context7, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
91
|
+
|
|
92
|
+
var 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", "zh-cn"];
|
|
91
93
|
var defaultToggleFlags = {
|
|
92
94
|
generateIndexHtml: true,
|
|
93
95
|
disableCoreJs: false
|
|
@@ -223,10 +225,9 @@ function createWebpackConfigForDevelopment() {
|
|
|
223
225
|
inject: false,
|
|
224
226
|
filename: paths.paths.appIndexHtml,
|
|
225
227
|
template: require.resolve('@commercetools-frontend/mc-html-template/webpack')
|
|
226
|
-
}), mergedOptions.toggleFlags.generateIndexHtml && new LocalHtmlWebpackPlugin(), //
|
|
227
|
-
// (`en` is built into Moment and can't be removed).
|
|
228
|
+
}), mergedOptions.toggleFlags.generateIndexHtml && new LocalHtmlWebpackPlugin(), // Only keep locales that are available in the Merchant Center.
|
|
228
229
|
new MomentLocalesPlugin__default["default"]({
|
|
229
|
-
localesToKeep:
|
|
230
|
+
localesToKeep: momentLocalesToKeep
|
|
230
231
|
}), // This is necessary to emit hot updates (CSS and Fast Refresh):
|
|
231
232
|
new webpack__default["default"].HotModuleReplacementPlugin(), // Experimental hot reloading for React .
|
|
232
233
|
// https://github.com/facebook/react/tree/master/packages/react-refresh
|
|
@@ -28,7 +28,7 @@ import fs from 'fs';
|
|
|
28
28
|
import path from 'path';
|
|
29
29
|
import { p as paths } from './paths-ed23d5a1.esm.js';
|
|
30
30
|
import { v as vendorsToTranspile } from './vendors-to-transpile-68e03526.esm.js';
|
|
31
|
-
import { c as createPostcssConfig } from './create-postcss-config-
|
|
31
|
+
import { c as createPostcssConfig } from './create-postcss-config-869bd4ab.esm.js';
|
|
32
32
|
import { h as hasJsxRuntime } from './has-jsx-runtime-8314226e.esm.js';
|
|
33
33
|
|
|
34
34
|
var FinalStatsWriterPlugin = /*#__PURE__*/function () {
|
|
@@ -93,6 +93,8 @@ var FinalStatsWriterPlugin = /*#__PURE__*/function () {
|
|
|
93
93
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
94
94
|
|
|
95
95
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context7, _context8; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context7 = ownKeys(Object(source), !0)).call(_context7, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context8 = ownKeys(Object(source))).call(_context8, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
96
|
+
|
|
97
|
+
var 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", "zh-cn"];
|
|
96
98
|
var defaultToggleFlags = {
|
|
97
99
|
// Allow to disable CSS extraction in case it's not necessary (e.g. for Storybook)
|
|
98
100
|
enableExtractCss: true,
|
|
@@ -240,10 +242,9 @@ function createWebpackConfigForProduction() {
|
|
|
240
242
|
'process.env': {
|
|
241
243
|
NODE_ENV: _JSON$stringify('production')
|
|
242
244
|
}
|
|
243
|
-
}), //
|
|
244
|
-
// (`en` is built into Moment and can't be removed)
|
|
245
|
+
}), // Only keep locales that are available in the Merchant Center.
|
|
245
246
|
new MomentLocalesPlugin({
|
|
246
|
-
localesToKeep:
|
|
247
|
+
localesToKeep: momentLocalesToKeep
|
|
247
248
|
}), // Generate a `stats.json` file containing information and paths to
|
|
248
249
|
// the assets that webpack created.
|
|
249
250
|
// This is necessary to programmatically refer to the correct bundle path
|
|
@@ -30,7 +30,7 @@ var fs = require('fs');
|
|
|
30
30
|
var path = require('path');
|
|
31
31
|
var paths = require('./paths-76b66e74.cjs.prod.js');
|
|
32
32
|
var vendorsToTranspile = require('./vendors-to-transpile-367e0ba8.cjs.prod.js');
|
|
33
|
-
var createPostcssConfig = require('./create-postcss-config-
|
|
33
|
+
var createPostcssConfig = require('./create-postcss-config-d0b0712b.cjs.prod.js');
|
|
34
34
|
var hasJsxRuntime = require('./has-jsx-runtime-0b03b72e.cjs.prod.js');
|
|
35
35
|
|
|
36
36
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -122,6 +122,8 @@ var FinalStatsWriterPlugin = /*#__PURE__*/function () {
|
|
|
122
122
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
123
123
|
|
|
124
124
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context7, _context8; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context7 = ownKeys(Object(source), !0)).call(_context7, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context8 = ownKeys(Object(source))).call(_context8, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
125
|
+
|
|
126
|
+
var 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", "zh-cn"];
|
|
125
127
|
var defaultToggleFlags = {
|
|
126
128
|
// Allow to disable CSS extraction in case it's not necessary (e.g. for Storybook)
|
|
127
129
|
enableExtractCss: true,
|
|
@@ -269,10 +271,9 @@ function createWebpackConfigForProduction() {
|
|
|
269
271
|
'process.env': {
|
|
270
272
|
NODE_ENV: _JSON$stringify__default["default"]('production')
|
|
271
273
|
}
|
|
272
|
-
}), //
|
|
273
|
-
// (`en` is built into Moment and can't be removed)
|
|
274
|
+
}), // Only keep locales that are available in the Merchant Center.
|
|
274
275
|
new MomentLocalesPlugin__default["default"]({
|
|
275
|
-
localesToKeep:
|
|
276
|
+
localesToKeep: momentLocalesToKeep
|
|
276
277
|
}), // Generate a `stats.json` file containing information and paths to
|
|
277
278
|
// the assets that webpack created.
|
|
278
279
|
// This is necessary to programmatically refer to the correct bundle path
|
|
@@ -30,7 +30,7 @@ var fs = require('fs');
|
|
|
30
30
|
var path = require('path');
|
|
31
31
|
var paths = require('./paths-16823f56.cjs.dev.js');
|
|
32
32
|
var vendorsToTranspile = require('./vendors-to-transpile-b51af5d3.cjs.dev.js');
|
|
33
|
-
var createPostcssConfig = require('./create-postcss-config-
|
|
33
|
+
var createPostcssConfig = require('./create-postcss-config-583a2d68.cjs.dev.js');
|
|
34
34
|
var hasJsxRuntime = require('./has-jsx-runtime-3d4bb633.cjs.dev.js');
|
|
35
35
|
|
|
36
36
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
@@ -122,6 +122,8 @@ var FinalStatsWriterPlugin = /*#__PURE__*/function () {
|
|
|
122
122
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
123
123
|
|
|
124
124
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context7, _context8; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context7 = ownKeys(Object(source), !0)).call(_context7, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context8 = ownKeys(Object(source))).call(_context8, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
|
|
125
|
+
|
|
126
|
+
var 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", "zh-cn"];
|
|
125
127
|
var defaultToggleFlags = {
|
|
126
128
|
// Allow to disable CSS extraction in case it's not necessary (e.g. for Storybook)
|
|
127
129
|
enableExtractCss: true,
|
|
@@ -269,10 +271,9 @@ function createWebpackConfigForProduction() {
|
|
|
269
271
|
'process.env': {
|
|
270
272
|
NODE_ENV: _JSON$stringify__default["default"]('production')
|
|
271
273
|
}
|
|
272
|
-
}), //
|
|
273
|
-
// (`en` is built into Moment and can't be removed)
|
|
274
|
+
}), // Only keep locales that are available in the Merchant Center.
|
|
274
275
|
new MomentLocalesPlugin__default["default"]({
|
|
275
|
-
localesToKeep:
|
|
276
|
+
localesToKeep: momentLocalesToKeep
|
|
276
277
|
}), // Generate a `stats.json` file containing information and paths to
|
|
277
278
|
// the assets that webpack created.
|
|
278
279
|
// This is necessary to programmatically refer to the correct bundle path
|