From d7b8314a5226e2459664df01cce1be1ffc1e7e9d Mon Sep 17 00:00:00 2001 From: Charles-Olivier Lehoux <82352563+colehoux@users.noreply.github.com> Date: Mon, 6 Nov 2023 15:52:55 -0500 Subject: [PATCH] Removed babel plugin proposal class properties (#41) * Removed babel class properties, caused FlatList to stop working * Run yarn --------- Co-authored-by: Charles Demers --- template/babel.config.js | 1 - template/package.json | 1 - template/yarn.lock | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/template/babel.config.js b/template/babel.config.js index d2575ba..1ec3165 100644 --- a/template/babel.config.js +++ b/template/babel.config.js @@ -3,7 +3,6 @@ module.exports = { plugins: [ 'babel-plugin-transform-typescript-metadata', ['@babel/plugin-proposal-decorators', { legacy: true }], - ['@babel/plugin-proposal-class-properties', { loose: true }], [ 'module-resolver', { diff --git a/template/package.json b/template/package.json index 04b7719..0c90a15 100644 --- a/template/package.json +++ b/template/package.json @@ -52,7 +52,6 @@ }, "devDependencies": { "@babel/core": "^7.22.0", - "@babel/plugin-proposal-class-properties": "^7.18.6", "@babel/plugin-proposal-decorators": "^7.23.0", "@babel/plugin-transform-class-static-block": "^7.22.11", "@babel/preset-env": "^7.22.20", diff --git a/template/yarn.lock b/template/yarn.lock index 74415b4..8db98c6 100644 --- a/template/yarn.lock +++ b/template/yarn.lock @@ -409,7 +409,7 @@ "@babel/helper-remap-async-to-generator" "^7.18.9" "@babel/plugin-syntax-async-generators" "^7.8.4" -"@babel/plugin-proposal-class-properties@^7.0.0", "@babel/plugin-proposal-class-properties@^7.13.0", "@babel/plugin-proposal-class-properties@^7.18.0", "@babel/plugin-proposal-class-properties@^7.18.6": +"@babel/plugin-proposal-class-properties@^7.0.0", "@babel/plugin-proposal-class-properties@^7.13.0", "@babel/plugin-proposal-class-properties@^7.18.0": version "7.18.6" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3" integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==