swc-project / swc-loader

Moved to https://github.com/swc-project/pkgs
MIT License
394 stars 29 forks source link

Fix missing variable, add .editorconfig file and example React app #3

Closed fabiosantoscode closed 5 years ago

fabiosantoscode commented 5 years ago

I hope this helps.

The example is surfacing a bug I found trying to use swc-loader. It's a very simple example, exactly what's in the docs, but it's failing with:

ERROR in ./index.js
Module build failed (from ../src/index.js):
Error: Error(InvalidKeyType("false"), State { next_error: None, backtrace: None })              
    at Object.transformSync (/home/fabio/devel/swc-loader/node_modules/swc/lib/index.js:11:39)  
    at Object.<anonymous> (/home/fabio/devel/swc-loader/src/index.js:60:32)                     

Any idea what may be causing it?

kdy1 commented 5 years ago

@fabiosantoscode I merged this pr with my fix. (#4)