Skip to content

Comments

Add root path to options#33

Open
thenengah wants to merge 2 commits intosheerun:masterfrom
thenengah:add-root-path-to-options
Open

Add root path to options#33
thenengah wants to merge 2 commits intosheerun:masterfrom
thenengah:add-root-path-to-options

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