Questions tagged [gulp-babel]

For questions related to the gulp-babel NPM package

gulp-babel allows using ES.next features in gulpfile.js via the babel transpiler.

See also (JavaScript build system) and (rewrites bleeding edge JavaScript features to run on EcmaScript 5 interpreters like V8).

55 questions
0
votes
0 answers

How do I replace @babel/polyfill for the latest Babel + Gulp?

Babel has droppped @babel/polyfill in one of its latest releases: https://babeljs.io/docs/en/babel-polyfill. I am using gulp-babel and trying to make it support IE 9 and up: gulp.task('js', () => { return gulp .src(paths.src.js.files) …
sdvnksv
  • 9,350
  • 18
  • 56
  • 108
0
votes
1 answer

gulp duplicating tasks in the terminal

I have a problem with my gulp, I don't know how to explain it, but you will understand the problem when you see it, basically, I think my gulp is duplicating the task and therefore the execution can take a while, but if I finish the gulp and execute…
0
votes
1 answer

What could be preventing my use of globs in gulpfile preventing my task from completing?

I'm using gulp babel and when I change the path to include a glob, I'm no longer getting an output, but when I have a specific path in , I get an output. I'm using gulp babel version 8, I have this issue where my gulp task only runs successfully…
rb20
  • 129
  • 2
  • 10
0
votes
0 answers

gulp-babel shown Syntax-error on comments

I help on developping a Foss tool , but i have error in gulp on Fedora29. Other dev use debian based system and seems it's OK. It was OK with the previopus version of Fedora The gulp files are at github and it seems gulp-babel throw SyntaxError on…
Denis Chenu
  • 846
  • 2
  • 7
  • 22
0
votes
1 answer

Plugin/Preset files are not allowed to export objects, only functions. In [...]/babel-preset-es2015/lib/index.js

I am trying to get my asset bundling to work with es6 and it wont work. My package.json is: "devDependencies": { "babel-preset-es2015": "^6.6.0", "del": "^2.2.0", "gulp": "^3.9.1", "gulp-babel": "^6.1.2" } My bundle.config.json conatins: options:…
user3241778
  • 294
  • 2
  • 4
  • 20
0
votes
1 answer

Prevent gulp uglify from stripping out es6

I'm using gulp babel to compile es6, but it seems like uglify is stripping out my es6 altogether. I'm not getting any errors in my command line when this runs. Any ideas why this is getting stripped out? My gulp task looks like this:…
John Hancock
  • 131
  • 2
  • 14
0
votes
1 answer

Converting es6 script to JS using gulp

I am trying to convert the ES6 code to simple JS, using babel in gulp. Running the below code I am getting [Error in Plugin "gulp-babel"] with Message: [Plugin/Preset files are not allowed to export objects, only functions.] var gulp =…
0
votes
0 answers

Why gulp-babel doesn't create any files?

I want to compile my src folder to my build folder but gulp-babel doesn't create any file and I don't see any errors. gulp.task('build', () => { gulp .src(['./src/**/*.js']) .pipe( babel({ presets: ['@babel/preset-env'] …
HypeWolf
  • 750
  • 12
  • 29
0
votes
1 answer

How transpiling nodejs Gulp-Task with gulp-babel and ignore "import"?

The goal is, transpiling ES6 scripts into ES5 and make them browser readable. This works most with my node.js gulp task, but some of the script use "import" like import EstaticoModule from '../../assets/js/helpers/module'; I would like to skip…
MattOpen
  • 815
  • 11
  • 24
0
votes
1 answer

UNMET package dependencies babel - @babel\core\package.json missing

I was trying to install gulp-babel with command npm install gulp-babel but after some process found below error : +-- UNMET PEER DEPENDENCY extraneous error: ENOENT: no such file or directory, open…
SilentKiller
  • 6,944
  • 6
  • 40
  • 75
0
votes
1 answer

Visual Studio Gulp Babel Resolve Imports

How to make gulp-babel resolve the imports of a js file. Because right now it is running without error in visual studio but the imports are not resolved. Does the source directory of modules to import need to be specified - how to do that in the…
John Dow
  • 177
  • 3
  • 14
0
votes
0 answers

How to generate single js with gulp-babel

I'm trying to get gulp-babel working as the only other way I've been able to do it is with webpack at the moment. It's all great that you can do your single layer script but the minute you start doing imports it doesn't include the script. For…
Pocketninja
  • 395
  • 1
  • 12
0
votes
1 answer

gulp-babel and babel-preset-es2015 doesn't work well in WebStorm 2017

I want to install gulp-babel and babel-preset-es2015 in my project in WebStorm 2017, but after I install them in node_modules it is very slow to reopen the project in WebStorm. I have excluded the node_modules like this: I can't use babel to…
edison xue
  • 1,291
  • 2
  • 16
  • 21
0
votes
1 answer

Aurelia CLI, babel runtime and async transforms

I'm in the process of porting an existing Aurelia app from JSPM/SystemJS to Aurelia CLI. I'm having trouble getting babel-runtime and associated transform to work for au build. I think the problem is due to the babel-runtime dependency required in…
Simon Fox
  • 10,409
  • 7
  • 60
  • 81
0
votes
0 answers

Missing code using gulp, babel, and uglify

What I'm trying to accomplish I'm trying to get my Javascript code on the client side to be Object-Oriented using ES6 or at least using the module pattern. I realize that this means that it's going to need transpiled and because I'm already using…
Jujunol
  • 457
  • 5
  • 18