/
githubmirror
/
ionic-framework
Обзор
Документация
Войти
/
githubmirror
/
ionic-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/vue-router/test/jest.preprocessor.js
14 строк
408 B
Liam DeBeasi
chore(vue, vue-router): update dev dependencies (#25465)
14 июн 2022, 18:40
Не верифицирован
14 июн 2022, 18:40
198f418
Код
Авторство
О чём код?
const tsc = require('typescript'); const tsConfig = require('../tsconfig.json'); // force the output to use commonjs modules required by jest tsConfig.compilerOptions.module = 'commonjs'; module.exports = { process(src, path) { if (path.endsWith('.ts') || path.endsWith('.tsx')) { return { code: tsc.transpile(src, tsConfig.compilerOptions, path, []) }; } return { code: src }; }, };