assetgraph
Version:
An auto discovery dependency graph based optimization framework for web pages and applications
28 lines (20 loc) • 507 B
JavaScript
const Relation = require('./Relation');
class JavaScriptDynamicImport extends Relation {
get href() {
return this.node.source.value;
}
set href(href) {
this.node.source.value = href;
}
attach(position, adjacentRelation) {
throw new Error('Not implemented yet');
}
detach() {
throw new Error('Not implemented yet');
}
}
Object.assign(JavaScriptDynamicImport.prototype, {
targetType: 'JavaScript',
nonBareRelative: true
});
module.exports = JavaScriptDynamicImport;