marko/compiler/taglib-loader/json-file-reader-browser.js
Patrick Steele-Idem 59fee06892 MIT license
2017-01-03 15:56:58 -07:00

11 lines
256 B
JavaScript

exports.readFileSync = function (path) {
var taglibProps;
try {
taglibProps = require(path);
} catch(e) {
throw new Error('Unable to parse taglib JSON at path "' + path + '". Exception: ' + e);
}
return taglibProps;
};