refactor(plugin): Remove direct dependency to once_cell (#3582)

This commit is contained in:
OJ Kwon 2022-02-15 21:43:25 -08:00 committed by GitHub
parent 7ddd5886f3
commit 88e07b21d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 6 deletions

1
Cargo.lock generated
View File

@ -3440,7 +3440,6 @@ dependencies = [
name = "swc_plugin"
version = "0.27.0"
dependencies = [
"once_cell",
"swc_atoms",
"swc_common",
"swc_ecma_ast",

View File

@ -14,4 +14,3 @@ swc_ecma_ast = {version = "0.65.0", path = "../swc_ecma_ast", features = ["rkyv-
swc_ecma_visit = {version = "0.51.0", path = "../swc_ecma_visit"}
swc_atoms = {version = "0.2.0", path = "../swc_atoms"}
swc_plugin_macro = {version = "0.3.0", path = "../swc_plugin_macro"}
once_cell = "1.9.0"

View File

@ -1,4 +1,4 @@
use once_cell::sync::OnceCell;
use swc_common::sync::OnceCell;
/// Simple substitution for scoped_thread_local with limited interface parity.
/// The only available fn in this struct is `with`, which is being used for the

View File

@ -766,9 +766,8 @@ dependencies = [
[[package]]
name = "swc_plugin"
version = "0.26.1"
version = "0.27.0"
dependencies = [
"once_cell",
"swc_atoms",
"swc_common",
"swc_ecma_ast",
@ -778,7 +777,7 @@ dependencies = [
[[package]]
name = "swc_plugin_macro"
version = "0.2.1"
version = "0.3.0"
dependencies = [
"proc-macro2",
"quote",