-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
10941c1
commit 831ed36
Showing
2 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
tests/integration/resolve/__snapshots__/index.test.ts.snap
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,61 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`resolve false 1`] = ` | ||
"var __webpack_modules__ = { | ||
\\"?69d8\\": function() { | ||
/* (ignored) */ } | ||
}; | ||
/************************************************************************/ // The module cache | ||
var __webpack_module_cache__ = {}; | ||
// The require function | ||
function __webpack_require__(moduleId) { | ||
// Check if module is in cache | ||
var cachedModule = __webpack_module_cache__[moduleId]; | ||
if (void 0 !== cachedModule) return cachedModule.exports; | ||
// Create a new module (and put it into the cache) | ||
var module = __webpack_module_cache__[moduleId] = { | ||
exports: {} | ||
}; | ||
// Execute the module function | ||
__webpack_modules__[moduleId](module, module.exports, __webpack_require__); | ||
// Return the exports of the module | ||
return module.exports; | ||
} | ||
/************************************************************************/ // webpack/runtime/compat_get_default_export | ||
(()=>{ | ||
// getDefaultExport function for compatibility with non-harmony modules | ||
__webpack_require__.n = function(module) { | ||
var getter = module && module.__esModule ? function() { | ||
return module['default']; | ||
} : function() { | ||
return module; | ||
}; | ||
__webpack_require__.d(getter, { | ||
a: getter | ||
}); | ||
return getter; | ||
}; | ||
})(); | ||
// webpack/runtime/define_property_getters | ||
(()=>{ | ||
__webpack_require__.d = function(exports, definition) { | ||
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: definition[key] | ||
}); | ||
}; | ||
})(); | ||
// webpack/runtime/has_own_property | ||
(()=>{ | ||
__webpack_require__.o = function(obj, prop) { | ||
return Object.prototype.hasOwnProperty.call(obj, prop); | ||
}; | ||
})(); /************************************************************************/ | ||
const bar = 'bar'; | ||
// EXTERNAL MODULE: ./browser-false/util (ignored) | ||
var util_ignored_ = __webpack_require__(\\"?69d8\\"); | ||
var util_ignored_default = /*#__PURE__*/ __webpack_require__.n(util_ignored_); | ||
console.log('foo:', util_ignored_default()); // the value of \`foo\` should \`{}\` | ||
console.log('bar: ', bar); | ||
" | ||
`; |
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