UNPKG

assetgraph

Version:

An auto discovery dependency graph based optimization framework for web pages and applications

28 lines (20 loc) 538 B
const JavaScriptRelation = require('./JavaScriptRelation'); class JavaScriptDynamicImport extends JavaScriptRelation { 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;