babel / babelify

Browserify transform for Babel
MIT License
1.68k stars 114 forks source link

Is it possible to disable asyncToGenerator? #287

Closed jrodriguesimg closed 5 years ago

jrodriguesimg commented 5 years ago

I'm using bebelify in a gulp task like this:

let stream = browserify(
    xtend(browserifyInc.args, {
      entries: "client/views/Components/VisualizationContainer.js",
      extensions: [".js"],
      paths: [
        "./client/dist/",
        "./client/views/Components/",
        "./client/views/"
      ],
      transform: ["imgurify"],
      debug: true
    })
  );
  browserifyInc(stream, { cacheFile: "./browserify-cache.json" });

  stream = stream
    .transform(babelify, { sourceMaps: true })
    .bundle()
    .pipe(source("bundle.js"))
    .pipe(buffer());

Is ther an option of bebelify to disable the conversion of code using async/await notation?

goto-bus-stop commented 5 years ago

Babelify uses Babel core's configuration. You have to disable it in your .babelrc file.

jrodriguesimg commented 5 years ago

Thanks