diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-30 20:18:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-30 20:18:50 +0200 |
| commit | f79cb08e0b9afa7609a353a464e0876d8c8a593c (patch) | |
| tree | 6bdd82b47db4f5f228a8271c04099dbc6218a176 /Cargo.lock | |
| parent | 898773d3f89b12e84d371644d4f13dec078bdc13 (diff) | |
feat: add SWC dependency analyzer (#5015)
This commit adds "analyze_dependencies" function that uses SWC
(by the means of AstParser) to perform analysis of static and dynamic
imports.
Diffstat (limited to 'Cargo.lock')
| -rw-r--r-- | Cargo.lock | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock index dd58066c5..dbf49bd03 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,16 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. [[package]] +name = "Inflector" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" +dependencies = [ + "lazy_static", + "regex", +] + +[[package]] name = "adler32" version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -493,6 +503,7 @@ dependencies = [ "serde_derive", "serde_json", "sourcemap", + "swc_ecma_visit", "sys-info", "tempfile", "termcolor", @@ -2464,6 +2475,33 @@ dependencies = [ ] [[package]] +name = "swc_ecma_visit" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bdd4d87e6499ff8cc3b32981ab2a3917cea4002a0c4523868181f59d14f4638" +dependencies = [ + "num-bigint", + "swc_atoms", + "swc_common", + "swc_ecma_ast", + "swc_ecma_visit_macros", +] + +[[package]] +name = "swc_ecma_visit_macros" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ceb3a3184ba505b3f94fa4132a72e754d361ad9913b7e0dc4f01ab38649a9d26" +dependencies = [ + "Inflector", + "pmutil", + "proc-macro2 1.0.10", + "quote 1.0.3", + "swc_macros_common", + "syn 1.0.17", +] + +[[package]] name = "swc_macros_common" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" |
