From aa773172311dcada759dfbaac485f4bc6e00bc21 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 14 Oct 2023 15:31:11 +0800 Subject: added babel --- node_modules/@babel/template/lib/string.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 node_modules/@babel/template/lib/string.js (limited to 'node_modules/@babel/template/lib/string.js') diff --git a/node_modules/@babel/template/lib/string.js b/node_modules/@babel/template/lib/string.js new file mode 100644 index 00000000..e29914d0 --- /dev/null +++ b/node_modules/@babel/template/lib/string.js @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = stringTemplate; +var _options = require("./options.js"); +var _parse = require("./parse.js"); +var _populate = require("./populate.js"); +function stringTemplate(formatter, code, opts) { + code = formatter.code(code); + let metadata; + return arg => { + const replacements = (0, _options.normalizeReplacements)(arg); + if (!metadata) metadata = (0, _parse.default)(formatter, code, opts); + return formatter.unwrap((0, _populate.default)(metadata, replacements)); + }; +} + +//# sourceMappingURL=string.js.map -- cgit v1.2.3