Disable babel transpiling of import() call
Transpiles to require(), which leads to "ReferenceError: require is not defined". So we rely on browser support for this.
This commit is contained in:
parent
cc7f4250ed
commit
9852aaf4e1
1 changed files with 1 additions and 1 deletions
|
|
@ -134,7 +134,7 @@ gulp.task('scripts', function () {
|
|||
.src(paths.scripts, { base: '.' })
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(cached('scripts'))
|
||||
.pipe(gulpif(!debug, babel()))
|
||||
.pipe(gulpif(!debug, babel({ caller: { supportsDynamicImport: true } })))
|
||||
.pipe(gulpif(!debug, uglify()))
|
||||
.pipe(remember('scripts'))
|
||||
.pipe(concat(paths.destName + '.js'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue