tleunen / babel-plugin-module-resolver

Custom module resolver plugin for Babel
MIT License
3.46k stars 205 forks source link

Import output is double quotes #430

Open andrewplummer opened 3 years ago

andrewplummer commented 3 years ago

For some reason when using this plugin the output results in double quotes even though the input is single quotes:

import foo from "../foo";

When not using the plugin the code is transformed as expected. I seem to have run across a related issue in @babel/core but can't find it now... possible it needs an upgrade?

My babelrc:

{
  "presets": [["@babel/preset-react"]],
  "plugins": [
    [
      "module-resolver",
      {
        "root": ["./src"]
      }
    ]
  ]
}