summaryrefslogtreecommitdiff
path: root/cli/module_graph.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-05-22 19:23:35 +0200
committerGitHub <noreply@github.com>2020-05-22 19:23:35 +0200
commit960f9ccb2e700332dc576163b62c518120c73f15 (patch)
tree3bca9c5c449c01344f7dea9a945032fe17bffe63 /cli/module_graph.rs
parente191c70989a1dbf29b095bf6c2f7b62b90de012a (diff)
fix: SWC lexer settings and silent errors (#5752)
This commit changes how error occurring in SWC are handled. Changed lexer settings to properly handle TS decorators. Changed output of SWC error to annotate with position in file.
Diffstat (limited to 'cli/module_graph.rs')
-rw-r--r--cli/module_graph.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/module_graph.rs b/cli/module_graph.rs
index c63e6848f..8e423265c 100644
--- a/cli/module_graph.rs
+++ b/cli/module_graph.rs
@@ -188,6 +188,7 @@ impl ModuleGraphLoader {
};
let (import_descs, ref_descs) = analyze_dependencies_and_references(
+ &specifier,
&source_code,
self.analyze_dynamic_imports,
)?;
@@ -402,6 +403,7 @@ impl ModuleGraphLoader {
}
let (import_descs, ref_descs) = analyze_dependencies_and_references(
+ &module_specifier.to_string(),
&source_code,
self.analyze_dynamic_imports,
)?;