@gravity-ui/app-builder 0.6.3 → 0.6.5
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.6.5](https://github.com/gravity-ui/app-builder/compare/v0.6.4...v0.6.5) (2023-08-16)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* replace babel-plugin-lodash with babel-plugin-import ([#65](https://github.com/gravity-ui/app-builder/issues/65)) ([73b6a3e](https://github.com/gravity-ui/app-builder/commit/73b6a3e5bd340ea3b41ecfc7e61575668eb5f474))
|
|
9
|
+
|
|
10
|
+
## [0.6.4](https://github.com/gravity-ui/app-builder/compare/v0.6.3...v0.6.4) (2023-08-04)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **build-library:** correctly write esm code to file ([#62](https://github.com/gravity-ui/app-builder/issues/62)) ([b1f1be2](https://github.com/gravity-ui/app-builder/commit/b1f1be2dfd93d79b54ee8c99e99cea945c0b6f16)), closes [#61](https://github.com/gravity-ui/app-builder/issues/61)
|
|
16
|
+
|
|
3
17
|
## [0.6.3](https://github.com/gravity-ui/app-builder/compare/v0.6.2...v0.6.3) (2023-07-31)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -204,7 +204,8 @@ function buildLibrary(config) {
|
|
|
204
204
|
}
|
|
205
205
|
else if (transformed) {
|
|
206
206
|
const code = transformed.code ?? '';
|
|
207
|
-
|
|
207
|
+
const esmCode = code + (code.length ? '\n' : '') + sourcemapUrl;
|
|
208
|
+
fs_1.default.writeFile(compiledFile, esmCode, errorHandlerFactory(`Source compilation has failed on writing ${compiledFile}`));
|
|
208
209
|
if (transformed.map) {
|
|
209
210
|
fs_1.default.writeFile(sourcemapFile, JSON.stringify(transformed.map), errorHandlerFactory(`Source compilation has failed on writing ${sourcemapFile}`));
|
|
210
211
|
}
|
|
@@ -141,8 +141,8 @@ export interface ClientConfig {
|
|
|
141
141
|
*/
|
|
142
142
|
newJsxTransform?: boolean;
|
|
143
143
|
/**
|
|
144
|
-
* @deprecated
|
|
145
|
-
|
|
144
|
+
* @deprecated use `forkTsChecker: false` instead
|
|
145
|
+
*/
|
|
146
146
|
disableForkTsChecker?: boolean;
|
|
147
147
|
forkTsChecker?: false | ForkTsCheckerWebpackPluginOptions;
|
|
148
148
|
disableSourceMapGeneration?: boolean;
|
|
@@ -271,7 +271,10 @@ function createJavaScriptLoader({ isEnvProduction, isEnvDevelopment, config, })
|
|
|
271
271
|
}
|
|
272
272
|
: undefined,
|
|
273
273
|
],
|
|
274
|
-
isEnvProduction &&
|
|
274
|
+
isEnvProduction && [
|
|
275
|
+
require.resolve('babel-plugin-import'),
|
|
276
|
+
{ libraryName: 'lodash', libraryDirectory: '', camel2DashComponentName: false },
|
|
277
|
+
],
|
|
275
278
|
].filter(Boolean),
|
|
276
279
|
sourceType: 'unambiguous',
|
|
277
280
|
cacheDirectory: config.babelCacheDirectory ? config.babelCacheDirectory : true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/app-builder",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.5",
|
|
4
4
|
"description": "Develop and build your React client-server projects, powered by typescript and webpack",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"@svgr/plugin-jsx": "^8.0.1",
|
|
74
74
|
"@svgr/webpack": "^8.0.1",
|
|
75
75
|
"babel-loader": "^9.1.2",
|
|
76
|
+
"babel-plugin-import": "^1.13.8",
|
|
76
77
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
77
|
-
"babel-plugin-lodash": "^3.3.4",
|
|
78
78
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
79
79
|
"browserslist": "^4.21.9",
|
|
80
80
|
"chalk": "^4.1.2",
|