diff --git a/packages/babel-preset-taro/package.json b/packages/babel-preset-taro/package.json index 87481fc99af5..a9a8ceab1124 100644 --- a/packages/babel-preset-taro/package.json +++ b/packages/babel-preset-taro/package.json @@ -36,7 +36,6 @@ "@rnx-kit/babel-preset-metro-react-native": "^1.1.8", "@tarojs/helper": "workspace:*", "babel-plugin-dynamic-import-node": "^2.3.3", - "babel-plugin-minify-dead-code-elimination": "^0.5.2", "babel-plugin-transform-imports-api": "1.0.0", "babel-plugin-transform-solid-jsx": "workspace:*", "core-js": "^3.36.1" diff --git a/packages/babel-preset-taro/rn/index.js b/packages/babel-preset-taro/rn/index.js index 6c27266d05e6..aa0652871ee5 100644 --- a/packages/babel-preset-taro/rn/index.js +++ b/packages/babel-preset-taro/rn/index.js @@ -55,10 +55,6 @@ module.exports = (_, options = {}) => { plugins.push(require('../remove-define-config')) - plugins.push( - [require('babel-plugin-minify-dead-code-elimination'), {}] - ) - return { presets, plugins diff --git a/packages/stylelint-taro-rn/package.json b/packages/stylelint-taro-rn/package.json index cedebc448b64..642191855684 100644 --- a/packages/stylelint-taro-rn/package.json +++ b/packages/stylelint-taro-rn/package.json @@ -45,7 +45,8 @@ "react-native-known-styling-properties": "^1.3.0" }, "devDependencies": { - "lodash": "^4.17.21" + "lodash": "^4.17.21", + "stylelint": "^16.4.0" }, "peerDependencies": { "stylelint": "^16" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9b7a480bc231..73639f78dbb0 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -390,9 +390,6 @@ importers: babel-plugin-dynamic-import-node: specifier: ^2.3.3 version: 2.3.3 - babel-plugin-minify-dead-code-elimination: - specifier: ^0.5.2 - version: 0.5.2 babel-plugin-transform-imports-api: specifier: 1.0.0 version: 1.0.0 @@ -524,6 +521,9 @@ importers: lodash: specifier: ^4.17.21 version: 4.17.21 + stylelint: + specifier: ^16.4.0 + version: 16.6.1(typescript@5.4.5) packages/taro: dependencies: @@ -6997,9 +6997,6 @@ packages: resolution: {integrity: sha512-Cg7TFGpIr01vOQNODXOOaGz2NpCU5gl8x1qJFbb6hbZxR7XrcE2vtbAsTAbJ7/xwJtUuJEw8K8Zr/AE0LHlesg==, tarball: https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-3.1.0.tgz} engines: {node: '>=10', npm: '>=6'} - babel-plugin-minify-dead-code-elimination@0.5.2: - resolution: {integrity: sha512-krq9Lwi0QIzyAlcNBXTL4usqUvevB4BzktdEsb8srcXC1AaYqRJiAQw6vdKdJSaXbz6snBvziGr6ch/aoRCfpA==, tarball: https://registry.npmjs.org/babel-plugin-minify-dead-code-elimination/-/babel-plugin-minify-dead-code-elimination-0.5.2.tgz} - babel-plugin-polyfill-corejs2@0.4.11: resolution: {integrity: sha512-sMEJ27L0gRHShOh5G54uAAPaiCOygY/5ratXuiyb2G46FmlSpc9eFCzYVyDiPxfNbwzA7mYahmjQc5q+CZQ09Q==, tarball: https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.11.tgz} peerDependencies: @@ -9547,11 +9544,6 @@ packages: engines: {node: '>=12'} deprecated: Glob versions prior to v9 are no longer supported - glob@https://registry.npmjs.org/glob/-/glob-7.1.6.tgz: - resolution: {integrity: sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==, tarball: https://registry.npmjs.org/glob/-/glob-7.1.6.tgz} - version: 7.1.6 - deprecated: Glob versions prior to v9 are no longer supported - glob@https://registry.npmjs.org/glob/-/glob-7.2.3.tgz: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==, tarball: https://registry.npmjs.org/glob/-/glob-7.2.3.tgz} version: 7.2.3 @@ -17957,7 +17949,7 @@ snapshots: chalk: 4.1.2 collect-v8-coverage: 1.0.2 exit: 0.1.2 - glob: https://registry.npmjs.org/glob/-/glob-7.2.3.tgz + glob: 7.2.3 graceful-fs: 4.2.11 istanbul-lib-coverage: 3.2.2 istanbul-lib-instrument: 5.2.1(supports-color@9.4.0) @@ -21004,13 +20996,6 @@ snapshots: cosmiconfig: 7.1.0 resolve: 1.22.8 - babel-plugin-minify-dead-code-elimination@0.5.2: - dependencies: - babel-helper-evaluate-path: 0.5.0 - babel-helper-mark-eval-scopes: 0.4.3 - babel-helper-remove-or-void: 0.4.3 - lodash: 4.17.21 - babel-plugin-polyfill-corejs2@0.4.11(@babel/core@7.24.4): dependencies: '@babel/compat-data': 7.24.6 @@ -24426,15 +24411,6 @@ snapshots: minimatch: 5.1.6 once: 1.4.0 - glob@https://registry.npmjs.org/glob/-/glob-7.1.6.tgz: - dependencies: - fs.realpath: https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz - inflight: https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz - inherits: https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz - minimatch: https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz - once: https://registry.npmjs.org/once/-/once-1.4.0.tgz - path-is-absolute: https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz - glob@https://registry.npmjs.org/glob/-/glob-7.2.3.tgz: dependencies: fs.realpath: https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz @@ -30447,7 +30423,7 @@ snapshots: dependencies: '@jridgewell/gen-mapping': 0.3.5 commander: 4.1.1 - glob: https://registry.npmjs.org/glob/-/glob-7.1.6.tgz + glob: 7.1.6 lines-and-columns: 1.2.4 mz: 2.7.0 pirates: 4.0.6