babel / babelify

Browserify transform for Babel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to disable asyncToGenerator?

jrodriguesimg opened this issue · comments

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?

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