Skip to content

Commit

Permalink
chore: more tree shaking test2 (#4208)
Browse files Browse the repository at this point in the history
* chore: πŸ€– add export all star

* chore: πŸ€– snapshot

* chore: πŸ€– update snapshot

* chore: πŸ€– update snap

* chore: πŸ€– lint

* chore: πŸ€– lint

* chore: πŸ€– temp use wrong star list
  • Loading branch information
IWANABETHATGUY committed Sep 21, 2023
1 parent d45cf93 commit 3440ee5
Showing 1 changed file with 27 additions and 7 deletions.
34 changes: 27 additions & 7 deletions crates/rspack/tests/tree-shaking/bb/snapshot/snap.diff
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,33 @@
"./a.js": function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
'use strict';
__webpack_require__.r(__webpack_exports__);
+__webpack_require__.d(__webpack_exports__, {
+ 'c': function() { return _b_js__WEBPACK_IMPORTED_MODULE_0_.c; }
+});
/* harmony import */var _b_js__WEBPACK_IMPORTED_MODULE_0_ = __webpack_require__(/* ./b.js */"./b.js");
/* harmony import */var _c_js__WEBPACK_IMPORTED_MODULE_1_ = __webpack_require__(/* ./c.js */"./c.js");
__webpack_require__.es(_c_js__WEBPACK_IMPORTED_MODULE_1_, __webpack_exports__);
@@ -27,9 +30,6 @@
-/* harmony import */var _b_js__WEBPACK_IMPORTED_MODULE_0_ = __webpack_require__(/* ./b.js */"./b.js");
-/* harmony import */var _c_js__WEBPACK_IMPORTED_MODULE_1_ = __webpack_require__(/* ./c.js */"./c.js");
-__webpack_require__.es(_c_js__WEBPACK_IMPORTED_MODULE_1_, __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__(/* ./b.js */"./b.js");
+__webpack_require__.es(_b_js__WEBPACK_IMPORTED_MODULE_1_, __webpack_exports__);
+// import { d, c } from "./b.js";

-
- const a = 3;
-_b_js__WEBPACK_IMPORTED_MODULE_0_.d;
-
+ // export const a = 3;
+ //
+ // d;
+ // export { c };
},
"./b.js": function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
'use strict';
__webpack_require__.r(__webpack_exports__);
-__webpack_require__.d(__webpack_exports__, {
- 'd': function() { return d; }
-});
const d = 3;
const c = 100;
},
"./c.js": function (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
'use strict';
__webpack_require__.r(__webpack_exports__);
Expand Down

0 comments on commit 3440ee5

Please sign in to comment.