Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/webpack/webpack
/ index.js
File
index.js
test/cases/parsing/renaming/index.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
it(
"should be able to rename require by var"
,
function
() {
2
var
cjsRequire;
// just to make it difficult
3
var
cjsRequire = require, cjsRequire2 = typeof require !==
"undefined"
&& require;
4
expect(cjsRequire(
"./file"
)).toBe(
"ok"
);
Callers
nothing calls this directly
Calls
4
R
Function · 0.85
it
Function · 0.50
r
Function · 0.50
call
Method · 0.45
Tested by
no test coverage detected