Skip to content

Commit

Permalink
feat(transform-conformance): support enabling all class-related plugi…
Browse files Browse the repository at this point in the history
…ns when any of them are enabled in update_fixtures
  • Loading branch information
Dunqing committed Dec 31, 2024
1 parent 9025a84 commit 645008a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tasks/transform_conformance/update_fixtures.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,6 @@ function ensureAllClassPluginsEnabled(options) {
}
});

// `transform-class-properties` is already enabled,
// we don't need to enable other class plugins
if (already_enabled.includes(CLASS_PLUGINS[0])) {
return false;
}

if (already_enabled.length) {
CLASS_PLUGINS.forEach(pluginName => {
if (!already_enabled.includes(pluginName)) {
Expand Down Expand Up @@ -187,10 +181,10 @@ async function transform(inputPath, options) {
cwd: import.meta.dirname,
};
delete options.BABEL_8_BREAKING;
delete options.SKIP_babel7plugins_babel8core;
delete options.minNodeVersion;
delete options.validateLogs;
delete options.SKIP_ON_PUBLISH;
delete options.SKIP_babel7plugins_babel8core;
delete options.minNodeVersion;

function prefixName(plugin, type) {
if (Array.isArray(plugin)) {
Expand Down

0 comments on commit 645008a

Please sign in to comment.