Grunt plugin for Babel
Questions tagged [grunt-babel]
26 questions
0
votes
1 answer
grunt-babel warning Binding 'arguments' in strict mode
when I want to compress my javascript code with grunt and uglifyjs,but uglifyjs is not support es6,so I use grunt-babel, but I have meet some truble, it warning Binding 'arguments' in strict mode, so I write some simple code test it. In this file,…

teisyo
- 1
- 1
0
votes
0 answers
I'm stuck configuring Gruntfile.js to transpile multiple JS files into one
I've replaced uglify with babel (and concat), so I'm concat'ing multiple ES6 files into one distribution JS file. I'd LIKE to concat into the dist folder, and have babel transpile and overwrite the file but doing that, babel is unable to use the…

Matt
- 124
- 12
0
votes
1 answer
Dynamic object keys don't work with grunt babel
I'm using these modules
"devDependencies": {
"@babel/core": "^7.0.0-beta.46",
"@babel/preset-env": "^7.0.0-beta.46",
"chai": "^4.1.2",
"chai-http": "^4.0.0",
"grunt": "^1.0.2",
"grunt-babel": "^8.0.0-beta.0",
"grunt-cli":…

Anshul
- 1
- 1
0
votes
2 answers
Grunt Add multiple input/output directories
I am using grunt-babel to transform my react-jsx files into .js.
I am planning to write a grunt task for this. Currently, I have below
module.exports = function( grunt ) {
require('load-grunt-tasks')(grunt);
grunt.initConfig( {
…

RanRag
- 48,359
- 38
- 114
- 167
0
votes
1 answer
Why i cannot transpile my js file?
I have a ES6 project. I want to transpile file into ES5. I'have created a gulp task. Here is the my task using babel :
gulp.task('transpile' , function() {
console.log('Transpile js ');
return gulp.src(['app/**/*.js'])
.pipe(babel({
…

Pracede
- 4,226
- 16
- 65
- 110
0
votes
1 answer
Packaging ES6-expressed Node files into a single Node module
I have a set of interdependent Node.js modules that I have been building as ES6 modules, and I would ideally like to be able to specify a single module as an entry point and have these built (using grunt) into a single file which can be required by…

Brett Zamir
- 14,034
- 6
- 54
- 77
0
votes
1 answer
grunt serve:dist failing with babel error
I created the mean stack seed using generator-angular-fullstack
But when i try to do "grunt serve:dist" i am getting this error
Running "babel:server" (babel) task
Warning: [BABEL] server/api/common/constants.js: Using removed Babel 5 option:…

Raghvendra Singh
- 1,775
- 4
- 26
- 53
0
votes
1 answer
Extra define with transform-es2015-modules-amd via grunt-babel
Input file
import Logger from "logger";
export default class Greeter {
constructor(name) {
this.name = name || '';
console.log('Hello', name);
}
notify() {
console.log('It is my duty to inform you that this JS is…

Jason
- 1,114
- 1
- 10
- 24
0
votes
1 answer
Grunt / Babel error: Unable to write "dist" file (Error code: EISDIR)
I am new to Grunt and all its plugins, but I want to learn and setup some awesome front-end tools. With that said, I have been following the Grunt docs and some's similar issue with Grunt and Babel via Github, but I seem to keep getting the…

thesayhey
- 938
- 3
- 17
- 38
0
votes
1 answer
Debugging Babel 6 generated ES2015 code does not work
I am experimenting with ES2015 JavaScript and using Babel 6 on grunt to compile the code into browser compatible code.
When I user Babel's online code converter (https://babeljs.io/repl/), and copy the code into my file, debugger works perfectly…

justinledouxweb
- 1,337
- 3
- 13
- 26
0
votes
1 answer
grunt-babel not working as multi-task
The following config works as expected, but when the //build: { stuff is uncommented it either silently fails, or it does something unexpected to me.
babel: {
//build: {
options: {
sourceMap: true,
…

Parris Varney
- 11,320
- 12
- 47
- 76