@a-la/import
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -39,3 +39,8 @@ const { | ||
const [, quotes, src] = /(["'`])(.+?)\1/.exec(realSrc) | ||
const source = getSource(src, this.config) | ||
// a special case because regexes are replaced before literals | ||
const s = src.replace(this.markers.regexes.regExp, (m, i) => { | ||
const val = this.markers.regexes.map[i] | ||
return val | ||
}) | ||
const source = getSource(s, this.config) | ||
const replacedDefault = getDef(defSeg, defName, quotes, source) | ||
@@ -42,0 +47,0 @@ const replacedNamed = getNamed(namedSeg, fromSeg, quotes, source, defName) |
## 1 September 2018 | ||
### 1.6.1 | ||
- [fix] Make sure that paths are replaced when importing with template literals. | ||
- [deps] Update `@a-la/context`. | ||
### 1.6.0 | ||
@@ -4,0 +9,0 @@ |
{ | ||
"name": "@a-la/import", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"description": "À La Regex to transpile the import statement into a require call.", | ||
@@ -58,3 +58,3 @@ "main": "build", | ||
"devDependencies": { | ||
"@a-la/context": "1.2.0", | ||
"@a-la/context": "1.2.3", | ||
"alamode": "1.3.0", | ||
@@ -61,0 +61,0 @@ "catchment": "3.0.1", |
Sorry, the diff of this file is not supported yet
28111
148