source: imaps-frontend/node_modules/@babel/template/lib/string.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 607 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = stringTemplate;
7var _options = require("./options.js");
8var _parse = require("./parse.js");
9var _populate = require("./populate.js");
10function stringTemplate(formatter, code, opts) {
11 code = formatter.code(code);
12 let metadata;
13 return arg => {
14 const replacements = (0, _options.normalizeReplacements)(arg);
15 if (!metadata) metadata = (0, _parse.default)(formatter, code, opts);
16 return formatter.unwrap((0, _populate.default)(metadata, replacements));
17 };
18}
19
20//# sourceMappingURL=string.js.map
Note: See TracBrowser for help on using the repository browser.