babel-plugin-module-resolver icon indicating copy to clipboard operation
babel-plugin-module-resolver copied to clipboard

Import output is double quotes

Open andrewplummer opened this issue 2 years ago • 0 comments

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"]
      }
    ]
  ]
}

andrewplummer avatar Sep 04 '21 05:09 andrewplummer