在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ryanseddon/gulp-es6-module-transpiler开源软件地址(OpenSource Url):https://github.com/ryanseddon/gulp-es6-module-transpiler开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-es6-module-transpilerGulp plugin for the ES6 Module Transpiler npm install gulp-es6-module-transpiler UsageBasic usagevar transpile = require('gulp-es6-module-transpiler');
gulp.task('build', function() {
return gulp.src('src/**/*.js')
.pipe(transpile({
formatter: 'bundle'
}))
.pipe(gulp.dest('lib'));
}) With source mapsvar sourcemaps = require('gulp-sourcemaps');
var transpile = require('gulp-es6-module-transpiler');
gulp.task('build', function() {
return gulp.src('src/**/*.js')
.pipe(sourcemaps.init())
.pipe(transpile({
formatter: 'bundle'
}))
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('lib'));
}) Options
Name of built-in formatter, formatter instance of formatter constructor function. Controls the output format of transpiler scripts. All built-in formatters are available as Defaults to es6-module-transpiler default formatter. Important es6-module-transpiler version 0.9.x supports
All module names will be resolved and named relatively to this path. Defaults to
Array of path that will be used to resolve modules. Defaults to
If set to Release history
License |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论