babel / babel/gulp-babel

Literals are not transformed

Open
#194 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.3k
Forks
113
PR merge metrics
No merged PRs in 30d

Description

Trying to use .babelrc config, but as a result use configuration in a task:
package.json:
```
"@babel/core": "7.4.4",
"@babel/plugin-transform-template-literals": "7.4.4",
"gulp-babel": "8.0.0",
```

gulp-task (show [in project](https://github.com/viT-1/systemjs-ts-es6-vue/commit/d39e56011595e523ec38991fdbdcd20b9915cc28#diff-c88ef83305da660752f4ce8952886440R35)):
```
import gBabel from 'gulp-babel';
import gHtml2Js from 'gulp-html-to-js';
import gReplace from 'gulp-replace';

task('tmpl2js',
() => src([`${absSrc}/**/*.html`])
.pipe(gHtml2Js())
.pipe(gReplace('module.exports =', 'export default'))
// BUG?! Babel is not transformed string/template literals!
.pipe(gBabel({
plugins: [
['@babel/plugin-transform-template-literals'],
],
}))
.pipe(dest(absDest)));
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the dependency versions in package.json and reproduce the gulp task shown in the issue, including gulp-babel and @babel/plugin-transform-template-literals. Compare the generated output with the input literals; done means the task transforms the template or string literals as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, javascript
Domain
build-system, tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.