/
githubmirror
/
jest
Обзор
Документация
Войти
/
githubmirror
/
jest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
e2e/coverage-handlebars/transform-handlebars.js
18 строк
613 B
Simen Bekkhus
chore: remove source-map dep from E2E test (#14933)
03 мар 2024, 16:54
Не верифицирован
03 мар 2024, 16:54
0e80305
Код
Авторство
О чём код?
/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const {build} = require('@jridgewell/build-mapping'); const Handlebars = require('handlebars/dist/cjs/handlebars.js'); const dedent = require('string-dedent'); exports.process = (code, filename) => { const pc = Handlebars.precompile(code, {srcName: filename}); return dedent(build)` const Handlebars = require("handlebars/dist/cjs/handlebars.runtime.js"); module.exports = Handlebars.template(${pc}); `; };