Skip to content

Commit

Permalink
chore: remove #4325 in webpack-test (#5035)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahabhgk committed Jan 2, 2024
1 parent 851ef5e commit c9a4706
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use rspack_core::{extract_member_expression_chain, DependencyTemplate, SpanExt};
use rspack_core::{extract_member_expression_chain, ConstDependency, DependencyTemplate, SpanExt};
use swc_core::{
common::SyntaxContext,
ecma::{
Expand Down Expand Up @@ -57,4 +57,16 @@ impl Visit for ExportInfoApiScanner<'_> {
}
}
}

fn visit_ident(&mut self, n: &Ident) {
if n.sym == "__webpack_exports_info__" {
let dep = Box::new(ConstDependency::new(
n.span.real_lo(),
n.span.real_hi(),
"true".into(),
None,
));
self.presentational_dependencies.push(dep);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

module.exports = () => {return "https://github.com/web-infra-dev/rspack/issues/4325"}
module.exports = () => {return "https://github.com/web-infra-dev/rspack/issues/4424"}

Original file line number Diff line number Diff line change
@@ -1,4 +1 @@

module.exports = () => {return "https://github.com/web-infra-dev/rspack/issues/4426, https://github.com/web-infra-dev/rspack/issues/4325"}


module.exports = () => {return "https://github.com/web-infra-dev/rspack/issues/4426"}
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@

module.exports = () => {return "https://github.com/web-infra-dev/rspack/issues/4325"}


module.exports = () => {return "https://github.com/web-infra-dev/rspack/issues/4323"}

0 comments on commit c9a4706

Please sign in to comment.