@gravity-ui/app-builder 0.6.1 → 0.6.2

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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.6.2](https://github.com/gravity-ui/app-builder/compare/v0.6.1...v0.6.2) (2023-07-24)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **build-lib:** correctly transform svg icons ([#53](https://github.com/gravity-ui/app-builder/issues/53)) ([9c9d3a6](https://github.com/gravity-ui/app-builder/commit/9c9d3a626ea6375a9edf93462fe0f7b367046b16))
9
+
3
10
  ## [0.6.1](https://github.com/gravity-ui/app-builder/compare/v0.6.0...v0.6.1) (2023-07-24)
4
11
 
5
12
 
@@ -259,6 +259,7 @@ function buildLibrary(config) {
259
259
  try {
260
260
  const component = await (0, core_1.transform)(fs_1.default.readFileSync(iconFile, 'utf-8'), {
261
261
  jsxRuntime: config.lib.newJsxTransform ? 'automatic' : 'classic',
262
+ plugins: [require.resolve('@svgr/plugin-jsx')],
262
263
  });
263
264
  babel.transform(component, {
264
265
  filename: iconFile,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/app-builder",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
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",
@@ -69,6 +69,7 @@
69
69
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
70
70
  "@statoscope/webpack-plugin": "^5.26.2",
71
71
  "@svgr/core": "^8.0.0",
72
+ "@svgr/plugin-jsx": "^8.0.1",
72
73
  "@svgr/webpack": "^8.0.1",
73
74
  "babel-loader": "^9.1.2",
74
75
  "babel-plugin-inline-react-svg": "^2.0.2",
@@ -117,9 +118,9 @@
117
118
  "strip-ansi": "^6.0.1",
118
119
  "style-loader": "^3.3.3",
119
120
  "svgo": "^3.0.2",
121
+ "terser-webpack-plugin": "5.3.9",
120
122
  "ts-node": "10.9.1",
121
123
  "tslib": "^2.6.0",
122
- "terser-webpack-plugin": "5.3.9",
123
124
  "typescript": "^5.1.6",
124
125
  "webpack": "^5.88.1",
125
126
  "webpack-assets-manifest": "^5.1.0",