mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
spack: remove_item is deprecated (#881)
This commit is contained in:
parent
d4ede122fc
commit
053f81c761
@ -93,7 +93,10 @@ impl Bundler<'_> {
|
||||
info.id, info.fm.name, src.module_id, src.src.value
|
||||
)
|
||||
})?;
|
||||
targets.remove_item(&info.id);
|
||||
|
||||
if let Some(pos) = targets.iter().position(|x| *x == info.id) {
|
||||
targets.remove(pos);
|
||||
}
|
||||
|
||||
if imported.is_es6 {
|
||||
//{
|
||||
|
Loading…
Reference in New Issue
Block a user