It looks like with Babel v8 this plugin does not work for dynamic imports, because of this AST change https://babeljs.io/docs/v8-migration-api#javascript-nodes
Just adding ImportExpression to the match pattern here
|
'ImportDeclaration|ExportDeclaration': transformImport, |
fixes it for the case where I bumped into it, but I guess a proper look is necessary, what the update for Babel v8 should be.
It looks like with Babel v8 this plugin does not work for dynamic imports, because of this AST change https://babeljs.io/docs/v8-migration-api#javascript-nodes
Just adding
ImportExpressionto the match pattern herebabel-plugin-module-resolver/src/index.js
Line 13 in da66dd7