Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102311458
ImportContextDependency.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
Wed, Feb 19, 09:32
Size
1 KB
Mime Type
text/x-c++
Expires
Fri, Feb 21, 09:32 (2 d)
Engine
blob
Format
Raw Data
Handle
24328739
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
ImportContextDependency.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 ImportContextDependency extends ContextDependency {
constructor(options, range, valueRange) {
super(options);
this.range = range;
this.valueRange = valueRange;
}
get type() {
return `import() context ${this.options.mode}`;
}
get category() {
return "esm";
}
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(
ImportContextDependency,
"webpack/lib/dependencies/ImportContextDependency"
);
ImportContextDependency.Template = ContextDependencyTemplateAsRequireCall;
module.exports = ImportContextDependency;
Event Timeline
Log In to Comment