JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q6953F
  • License MIT

Transform next-generation JavaScript to today's JavaScript

Package Exports

  • gulp-esnext

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-esnext) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-esnext Build Status

Transform next-generation JavaScript to today's JavaScript with esnext

Issues with the output should be reported on the esnext issue tracker.

Install

$ npm install --save-dev gulp-esnext

Usage

var gulp = require('gulp');
var esnext = require('gulp-esnext');

gulp.task('default', function () {
    return gulp.src('src/app.js')
        .pipe(esnext())
        .pipe(gulp.dest('dist'));
});

API

esnext(options)

options

Options are passed through to esnext.

Source Maps

Use gulp-sourcemaps like this:

var gulp = require('gulp');
var sourcemaps = require('gulp-sourcemaps');
var esnext = require('gulp-esnext');
var concat = require('gulp-concat');

gulp.task('default', function () {
    return gulp.src('src/**/*.js')
        .pipe(sourcemaps.init())
        .pipe(esnext())
        .pipe(concat('all.js'))
        .pipe(sourcemaps.write('.'))
        .pipe(gulp.dest('dist'));
});

License

MIT © Sindre Sorhus