Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100995099
CommonJsRequireContextDependency.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Feb 4, 15:35
Size
1 KB
Mime Type
text/x-c++
Expires
Thu, Feb 6, 15:35 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24070658
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
CommonJsRequireContextDependency.js
View Options
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict"
;
const
makeSerializable
=
require
(
"../util/makeSerializable"
);
const
ContextDependency
=
require
(
"./ContextDependency"
);
const
ContextDependencyTemplateAsRequireCall
=
require
(
"./ContextDependencyTemplateAsRequireCall"
);
class
CommonJsRequireContextDependency
extends
ContextDependency
{
constructor
(
options
,
range
,
valueRange
)
{
super
(
options
);
this
.
range
=
range
;
this
.
valueRange
=
valueRange
;
}
get
type
()
{
return
"cjs require context"
;
}
serialize
(
context
)
{
const
{
write
}
=
context
;
write
(
this
.
range
);
write
(
this
.
valueRange
);
super
.
serialize
(
context
);
}
deserialize
(
context
)
{
const
{
read
}
=
context
;
this
.
range
=
read
();
this
.
valueRange
=
read
();
super
.
deserialize
(
context
);
}
}
makeSerializable
(
CommonJsRequireContextDependency
,
"webpack/lib/dependencies/CommonJsRequireContextDependency"
);
CommonJsRequireContextDependency
.
Template
=
ContextDependencyTemplateAsRequireCall
;
module
.
exports
=
CommonJsRequireContextDependency
;
Event Timeline
Log In to Comment