Skip to content

Commit

Permalink
chore: add tests for #7016
Browse files Browse the repository at this point in the history
  • Loading branch information
JSerFeng committed Jul 5, 2024
1 parent 255e00e commit dc7edb0
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
```js title=main.js
(self['webpackChunkwebpack'] = self['webpackChunkwebpack'] || []).push([["main"], {
"./index.js": (function () {
if (true) {
const hasConsole = typeof console !== 'undefined';
const warn = (msg) => {
if (hasConsole) {
console.warn(msg)
}
}
warn()
}


}),

},function(__webpack_require__) {
var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId) }
var __webpack_exports__ = (__webpack_exec__("./index.js"));

}
]);
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
if (true) {
const hasConsole = typeof console !== 'undefined';
const warn = (msg) => {
if (hasConsole) {
console.warn(msg)
}
}
warn()
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {

}

0 comments on commit dc7edb0

Please sign in to comment.