Babel file is copied without being transformed

前端 未结 10 2315
礼貌的吻别
礼貌的吻别 2020-11-22 06:09

I have this code:

\"use strict\";

import browserSync from \"browser-sync\";
import httpProxy from \"http-proxy\";

let proxy = httpProxy.createProxyServer({         


        
10条回答
  •  不知归路
    2020-11-22 06:52

    Same error, different cause:

    Transpiling had worked before and then suddenly stopped working, with files simply being copied as is.

    Turns out I opened the .babelrc at some point and Windows decided to append .txt to the filename. Now that .babelrc.txt wasn't recognized by babel. Removing the .txt suffix fixed that.

提交回复
热议问题