@gravity-ui/app-builder 0.0.2 → 0.1.1
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.1](https://github.com/gravity-ui/app-builder/compare/v0.1.0...v0.1.1) (2023-03-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* correctly load dayjs locales ([#6](https://github.com/gravity-ui/app-builder/issues/6)) ([412dfd6](https://github.com/gravity-ui/app-builder/commit/412dfd6d89dccbda9652a96baa36491db2e6b4dc))
|
|
9
|
+
|
|
10
|
+
## [0.1.0](https://github.com/gravity-ui/app-builder/compare/v0.0.2...v0.1.0) (2023-02-07)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* limit load of dayjs locales ([#3](https://github.com/gravity-ui/app-builder/issues/3)) ([a7ff218](https://github.com/gravity-ui/app-builder/commit/a7ff2189ad99473e51f7470bc7e9ee32c490b64c))
|
|
16
|
+
|
|
3
17
|
## [0.0.2](https://github.com/gravity-ui/app-builder/compare/v0.0.1...v0.0.2) (2022-12-19)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -26,7 +26,12 @@ interface DevServerConfig {
|
|
|
26
26
|
}
|
|
27
27
|
interface ContextReplacement {
|
|
28
28
|
'highlight.js'?: string[];
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Used to limit loading of "moment" and "dayjs" locales
|
|
31
|
+
*
|
|
32
|
+
* @default ['ru']
|
|
33
|
+
*/
|
|
34
|
+
locale?: string[];
|
|
30
35
|
}
|
|
31
36
|
export interface LibraryConfig {
|
|
32
37
|
lib?: {
|
|
@@ -506,7 +506,10 @@ function configurePlugins(options) {
|
|
|
506
506
|
const contextReplacement = config.contextReplacement || {};
|
|
507
507
|
plugins.push(new webpack.ContextReplacementPlugin(/moment[\\/]locale$/,
|
|
508
508
|
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
509
|
-
new RegExp(`^\\./(${(contextReplacement.
|
|
509
|
+
new RegExp(`^\\./(${(contextReplacement.locale || ['ru']).join('|')})$`)));
|
|
510
|
+
plugins.push(new webpack.ContextReplacementPlugin(/dayjs[\\/]locale$/,
|
|
511
|
+
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
512
|
+
new RegExp(`^\\./(${(contextReplacement.locale || ['ru']).join('|')})\\.js$`)));
|
|
510
513
|
if (contextReplacement['highlight.js']) {
|
|
511
514
|
plugins.push(new webpack.ContextReplacementPlugin(/highlight\.js[\\/]lib[\\/]languages$/,
|
|
512
515
|
// eslint-disable-next-line security/detect-non-literal-regexp
|