20 lines
675 B
JavaScript
Raw Normal View History

2019-12-07 13:28:52 +02:00
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-var-requires */
2019-11-27 10:09:51 +02:00
/* eslint-env node */
const path = require('path');
const { transform } = require('webpack-utils/intl-loader');
2019-11-27 10:09:51 +02:00
module.exports = {
2020-05-24 02:08:24 +03:00
/**
* @param {string} src - transformed module source code
* @param {string} filename - transformed module file path
* @param {{[key: string]: any}} config - jest config
* @param {{instrument: boolean}} options - additional options
*
* @returns {string}
*/
process(src, filename, config, options) {
return transform(src, filename, path.resolve(`${__dirname}/../../..`));
},
2019-11-27 10:09:51 +02:00
};