Skip to content

Conversation

@thenengah
Copy link

#7

Fix for this issue.

babelRegister({
  cache: false,
  extensions: ['.js'],
  presets: [
    ['@babel/preset-env'],
    ['@babel/preset-react']
  ],
  plugins: [
    ['@babel/plugin-transform-runtime'],
    ['babel-plugin-transform-require-ignore', {
      extensions: ['.css', '.scss']
    }],
    ['babel-plugin-file-loader', {
      rootPath: '../',
      publicPath: '/dist',
      outputPath: '/public/dist'
    }]
  ]
})

Example usage with @babel/register

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant