react-youtube-playlist
Version:
A react component for displaying the contents of a user's YouTube playlist.
15 lines (14 loc) • 442 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = transformImportCall;
function transformImportCall(t, nodePath, mapper, state, cwd) {
var source = nodePath.get('source');
if (source.type === 'StringLiteral') {
var modulePath = mapper(source.node.value, state.file.opts.filename, state.opts, cwd);
if (modulePath) {
source.replaceWith(t.stringLiteral(modulePath));
}
}
}