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

Use .babelrc in function folder first #34

Closed
niicojs opened this issue May 9, 2018 · 3 comments
Closed

Use .babelrc in function folder first #34

niicojs opened this issue May 9, 2018 · 3 comments

Comments

@niicojs
Copy link

niicojs commented May 9, 2018

Would be nice if .babelrc is first looked (or only looked?) into the folder of the functions.
Root folder may contains .babelrc used by other part of the project.

@huygn
Copy link

huygn commented May 30, 2018

I got issue when my web project is running babel 7 while netlify-lambda using babel 6, thus netlify-lambda failed to load my .babelrc

@iiroj
Copy link

iiroj commented Aug 21, 2018

You could also override the default loader in Webpack and supply custom options to babel-loader:

module.exports = {
    module: {
      rules: [
        {
          test: /\.js?$/,
          exclude: /(node_modules|bower_components)/,
          use: {
            loader: "babel-loader",
            options: {
              babelrc: false,
              ...myCustomOptions
          }
        }
      ]
    }
}

@swyxio
Copy link
Contributor

swyxio commented Oct 17, 2018

hi @huygn - netlify-lambda uses babel 7 now so hopefully less issues there.

thanks everyone

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

No branches or pull requests

4 participants