advanced syntaxes: ignores quotes around file path in IMPORT{}
This commit is contained in:
parent
4de6c33f5a
commit
5af6abb06d
2 changed files with 7 additions and 0 deletions
|
|
@ -759,6 +759,12 @@ class Widget extends EventEmitter {
|
|||
})
|
||||
|
||||
propValue = balancedReplace('IMPORT', '{', '}', propValue, (file)=>{
|
||||
if (
|
||||
// remove quotes
|
||||
(file[0] === '"' && file[file.length - 1] === '"') ||
|
||||
(file[0] === '\'' && file[file.length - 1] === '\'')
|
||||
) file = file.slice(1, file.length - 1)
|
||||
|
||||
if (storeLinks) {
|
||||
if (!this.fragments[file]) this.fragments[file] = []
|
||||
if (!this.fragments[file].includes(propName)) this.fragments[file].push(propName)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue