wip ext file import syntax
This commit is contained in:
parent
e11f994b8f
commit
697f3e8acc
3 changed files with 26 additions and 3 deletions
|
|
@ -182,7 +182,7 @@ module.exports = {
|
|||
error = err
|
||||
} else {
|
||||
try {
|
||||
result = JSON.parse(result)
|
||||
result = data.path.split('.').pop() === 'json' ? JSON.parse(result) : result
|
||||
callback(result)
|
||||
} catch(err) {
|
||||
error = err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue