Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add root path to options #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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