File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ const {asyncRimRaf} = require('./utils');
2626const codeFrame = require ( '@babel/code-frame' ) . default ;
2727const Wrappers = require ( './wrappers' ) ;
2828const commonjs = require ( '@rollup/plugin-commonjs' ) ;
29- const { getBabelOutputPlugin} = require ( '@rollup/plugin-babel' ) ;
3029
3130const RELEASE_CHANNEL = process . env . RELEASE_CHANNEL ;
3231
@@ -418,12 +417,6 @@ function getPlugins(
418417 bundle
419418 )
420419 ) ,
421- // For Meta internal requirements this package needs to be built targeting ES5.
422- bundle . name === 'eslint-plugin-react-hooks'
423- ? getBabelOutputPlugin ( {
424- presets : [ '@babel/preset-env' ] ,
425- } )
426- : false ,
427420 // Remove 'use strict' from individual source files. We skip eslint-plugin-react-hooks because
428421 // it bundles compiler-type code that may examine "use strict" used outside of a directive
429422 // context, e.g. as a StringLiteral.
@@ -503,7 +496,7 @@ function getPlugins(
503496 // takes care of it.
504497 renaming : false ,
505498 } ) ,
506- ( needsMinifiedByClosure || bundle . name === 'eslint-plugin-react-hooks' ) &&
499+ needsMinifiedByClosure &&
507500 // Add the whitespace back
508501 prettier ( {
509502 parser : 'flow' ,
You can’t perform that action at this time.
0 commit comments