Created
          December 3, 2020 11:40 
        
      - 
      
- 
        Save jwchang0206/f01208b42f09dc5ea02169f7aebf643d to your computer and use it in GitHub Desktop. 
    Craco config for JavaScript
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const CracoSwcPlugin = require('craco-swc'); | |
| module.exports = { | |
| plugins: [ | |
| { | |
| plugin: CracoSwcPlugin, | |
| options: { | |
| swcLoaderOptions: { | |
| jsc: { | |
| externalHelpers: true, | |
| target: 'es5', | |
| parser: { | |
| syntax: 'ecmascript', | |
| jsx: true, | |
| dynamicImport: true, | |
| exportDefaultFrom: true, | |
| }, | |
| }, | |
| }, | |
| }, | |
| }, | |
| ], | |
| }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment