Babel plugin error: Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`
问题 EDIT / UPDATE: I have taken loganfsmyth's advice and pulled out babel as the first argument to the sveltify function and I can access / console log babel.template.statement.ast however, if I try to call that function my app hangs indefinitely. Thie details: I am trying to use this with svelte to replace the import statement and I have a plugin as: const sveltify = (babel) => ({ visitor: { ImportDeclaration(path){ // import x from 'svelte/somewhere' if (path.node.source.value.startsWith(