Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/webpack/webpack
/ index.js
File
index.js
test/cases/parsing/resolve-weak-context/index.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
it(
"should be able to use require.resolveWeak with expression"
,
function
() {
2
var
expr =
"file"
;
3
var
id = require.resolveWeak(
"./dir/"
+ expr);
4
expect(id).toBe(require(
"./dir/file.js"
));
Callers
nothing calls this directly
Calls
3
resolveWeak
Method · 0.80
it
Function · 0.50
require
Function · 0.50
Tested by
no test coverage detected