Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/webpack/webpack
/ index.js
File
index.js
test/cases/chunks/context/index.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
it(
"should also work in a chunk"
,
function
(done) {
2
require.ensure([],
function
(require) {
3
var
contextRequire = require.context(
"."
, false, /two/);
4
expect(contextRequire(
"./two"
)).toBe(2);
Callers
nothing calls this directly
Calls
4
ensure
Method · 0.80
context
Method · 0.80
it
Function · 0.50
require
Function · 0.50
Tested by
no test coverage detected