Skip to content

Commit

Permalink
chore: 🤖 update
Browse files Browse the repository at this point in the history
  • Loading branch information
IWANABETHATGUY committed Sep 19, 2023
1 parent 3c6a439 commit 464cfea
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ source: crates/rspack_testing/src/run_fixture.rs
"./a.js": function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
'use strict';
__webpack_require__.r(__webpack_exports__);
/* harmony import */var _c_js__WEBPACK_IMPORTED_MODULE_0_ = __webpack_require__(/* ./c.js */"./c.js");
__webpack_require__.es(_c_js__WEBPACK_IMPORTED_MODULE_0_, __webpack_exports__);
/* harmony import */var _b_js__WEBPACK_IMPORTED_MODULE_1_ = __webpack_require__(Object(function webpackMissingModule() { var e = new Error('Cannot find module './b.js''); e.code = 'MODULE_NOT_FOUND'; throw e; }()));
__webpack_require__.es(_b_js__WEBPACK_IMPORTED_MODULE_1_, __webpack_exports__);
// import { d, c } from "./b.js";
// export const a = 3;
Expand All @@ -28,7 +24,6 @@ __webpack_require__.d(__webpack_exports__, {
"./index.js": function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
'use strict';
__webpack_require__.r(__webpack_exports__);
/* harmony import */var _a_js__WEBPACK_IMPORTED_MODULE_0_ = __webpack_require__(/* ./a.js */"./a.js");
_a_js__WEBPACK_IMPORTED_MODULE_0_.ccc;
},
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ impl DependencyTemplate for HarmonyImportDependency {
let compilation = &code_generatable_context.compilation;
let module = &code_generatable_context.module;

let connection = compilation.module_graph.connection_by_dependency(&self.id);
if let Some(con) = connection {
// TODO: runtime opt
let active = con.is_target_active(&compilation.module_graph, None);
if !active {
return;
}
}
let ref_mgm = compilation
.module_graph
.module_graph_module_by_dependency_id(&self.id)
Expand Down Expand Up @@ -174,14 +182,14 @@ impl DependencyTemplate for HarmonyImportDependency {
)));
}
if self.export_all {
let connection = compilation.module_graph.connection_by_dependency(&self.id);
if let Some(con) = connection {
// TODO: runtime opt
let active = con.is_target_active(&compilation.module_graph, None);
if !active {
return;
}
}
// let connection = compilation.module_graph.connection_by_dependency(&self.id);
// if let Some(con) = connection {
// // TODO: runtime opt
// let active = con.is_target_active(&compilation.module_graph, None);
// if !active {
// return;
// }
// }
runtime_requirements.insert(RuntimeGlobals::EXPORT_STAR);
let exports_argument = compilation
.module_graph
Expand Down

0 comments on commit 464cfea

Please sign in to comment.