@gravity-ui/app-builder 0.7.0 → 0.7.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.
@@ -16,6 +16,17 @@ module.exports = function (_context, options = {}) {
16
16
  const isTypeScriptEnabled = getOption(options.typescript, false);
17
17
  const reactOptions = getOption(options.react, {});
18
18
  const presets = [
19
+ [
20
+ () => ({
21
+ /**
22
+ * Safari 15 has a buggy implementation of class properties,
23
+ * but @babel/compat-data marks it as stable.
24
+ * Can be removed once the issue is fixed and released.
25
+ * @see https://github.com/babel/babel/issues/14289
26
+ */
27
+ plugins: [require.resolve('@babel/plugin-transform-class-properties')],
28
+ }),
29
+ ],
19
30
  // Latest stable ECMAScript features
20
31
  (isEnvDevelopment || isEnvProduction) && [require.resolve('@babel/preset-env'), envOptions],
21
32
  // ES features necessary for current Node version
@@ -46,13 +57,6 @@ module.exports = function (_context, options = {}) {
46
57
  const plugins = [
47
58
  // Polyfills the runtime needed for async/await and generators
48
59
  [require.resolve('@babel/plugin-transform-runtime'), runtimeOptions],
49
- /**
50
- * Safari 15 has a buggy implementation of class properties,
51
- * but @babel/compat-data marks it as stable.
52
- * Can be removed once the issue is fixed and released.
53
- * @see https://github.com/babel/babel/issues/14289
54
- */
55
- [require.resolve('@babel/plugin-transform-class-properties')],
56
60
  isEnvProduction && [
57
61
  require.resolve('babel-plugin-transform-react-remove-prop-types'),
58
62
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/app-builder",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Develop and build your React client-server projects, powered by typescript and webpack",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -60,7 +60,6 @@
60
60
  "@aws-sdk/client-s3": "^3.353.0",
61
61
  "@babel/core": "^7.22.0",
62
62
  "@babel/helper-plugin-utils": "^7.22.5",
63
- "@babel/plugin-proposal-decorators": "^7.22.0",
64
63
  "@babel/plugin-transform-class-properties": "^7.22.5",
65
64
  "@babel/plugin-transform-dynamic-import": "^7.22.0",
66
65
  "@babel/plugin-transform-modules-commonjs": "^7.22.0",