-
-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: flag side effects plugin update dep (#4747)
* chore: π€ ck point * chore: π€ update * chore: π€ update * chore: π€ update snapshot * chore: π€ update * chore: π€ update snap * chore: π€ update snapshot * chore: π€ update check.js * chore: π€ update snapshot * chore: π€ resolve conflict * chore: π€ lint * chore: π€ update dep * chore: π€ impl hash by hand * chore: π€ recover * chore: π€ clean up * chore: π€ update snap * chore: π€ fmt * chore: π€ clean * chore: π€ recover
- Loading branch information
1 parent
6bf4904
commit 69728bd
Showing
81 changed files
with
1,246 additions
and
782 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
import * as test from "./app"; | ||
import { answer } from "./lib"; | ||
answer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
import { answer } from "./answer"; | ||
export const secret = "888"; | ||
export const myanswer = answer, | ||
result = 20000; | ||
export {answer} from './answer' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,22 @@ | ||
--- expected | ||
+++ actual | ||
@@ -22,7 +22,7 @@ | ||
function render() { | ||
function test() { | ||
const container = document.getElementById("root"); | ||
- container.innerHTML = `adddd333:${/* "./lib" unused */null}:${_lib__WEBPACK_IMPORTED_MODULE_0__.myanswer}`; | ||
+ container.innerHTML = `adddd333:${secret}:${myanswer}`; | ||
} | ||
} | ||
if (module.hot?.accept) module.hot.accept((module1)=>{ | ||
@@ -14,18 +14,9 @@ | ||
"./index.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
-/* harmony import */var _lib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/* ./lib */"./lib.js"); | ||
+/* harmony import */var _lib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/* ./lib */"./answer.js"); | ||
|
||
_lib__WEBPACK_IMPORTED_MODULE_0__.answer; | ||
-}), | ||
-"./lib.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { | ||
-"use strict"; | ||
-__webpack_require__.r(__webpack_exports__); | ||
-__webpack_require__.d(__webpack_exports__, { | ||
- answer: function() { return _answer__WEBPACK_IMPORTED_MODULE_0__.answer; } | ||
-}); | ||
-/* harmony import */var _answer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/* ./answer */"./answer.js"); | ||
- | ||
}), | ||
|
||
},function(__webpack_require__) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- expected | ||
+++ actual | ||
@@ -3,27 +3,6 @@ | ||
--- | ||
```js title=main.js | ||
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["main"], { | ||
-"./a.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { | ||
-"use strict"; | ||
-__webpack_require__.r(__webpack_exports__); | ||
-/* 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__); | ||
- | ||
- | ||
- const a = 3; | ||
-_b_js__WEBPACK_IMPORTED_MODULE_0__.d; | ||
- | ||
-}), | ||
-"./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__); | ||
@@ -35,7 +14,7 @@ | ||
"./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"); | ||
+/* harmony import */var _a_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/* ./a.js */"./c.js"); | ||
|
||
_a_js__WEBPACK_IMPORTED_MODULE_0__.ccc; | ||
}), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
crates/rspack/tests/tree-shaking/cjs-tree-shaking-basic/snapshot/snap.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- expected | ||
+++ actual | ||
@@ -12,19 +12,10 @@ | ||
|
||
const answer = 42; | ||
}), | ||
-"./app.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { | ||
-"use strict"; | ||
-__webpack_require__.r(__webpack_exports__); | ||
-__webpack_require__.d(__webpack_exports__, { | ||
- myanswer: function() { return _lib__WEBPACK_IMPORTED_MODULE_0__.myanswer; } | ||
-}); | ||
-/* harmony import */var _lib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/* ./lib */"./lib.js"); | ||
- | ||
-}), | ||
"./index.js": (function (__unused_webpack_module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
-/* harmony import */var _app__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/* ./app */"./app.js"); | ||
+/* harmony import */var _app__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/* ./app */"./lib.js"); | ||
|
||
__webpack_require__(/* ./answer */"./answer.js"); | ||
(0, _app__WEBPACK_IMPORTED_MODULE_0__.myanswer)(); |
Oops, something went wrong.