Skip to content

Commit e66332a

Browse files
committed
Remove now-obsolete import cleanup plugin
This was added as part of the "Interaction Tracking" work in facebook#13509 back in 2018. That feature was removed in facebook#20037 in 2020, and this plugin appears to no longer have any effect on the build output.
1 parent 8590ece commit e66332a

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

scripts/rollup/build.js

-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const Stats = require('./stats');
1818
const Sync = require('./sync');
1919
const sizes = require('./plugins/sizes-plugin');
2020
const useForks = require('./plugins/use-forks-plugin');
21-
const stripUnusedImports = require('./plugins/strip-unused-imports');
2221
const dynamicImports = require('./plugins/dynamic-imports');
2322
const Packaging = require('./packaging');
2423
const {asyncRimRaf} = require('./utils');
@@ -420,9 +419,6 @@ function getPlugins(
420419
assume_function_wrapper: !isUMDBundle,
421420
renaming: !shouldStayReadable,
422421
}),
423-
// HACK to work around the fact that Rollup isn't removing unused, pure-module imports.
424-
// Note that this plugin must be called after closure applies DCE.
425-
isProduction && stripUnusedImports(pureExternalModules),
426422
// Add the whitespace back if necessary.
427423
shouldStayReadable &&
428424
prettier({

scripts/rollup/plugins/strip-unused-imports.js

-29
This file was deleted.

0 commit comments

Comments
 (0)