2019-12-07 16:58:52 +05:30
|
|
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
|
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
2019-11-27 13:39:51 +05:30
|
|
|
/* eslint-env node */
|
2019-11-27 14:33:32 +05:30
|
|
|
const path = require('path');
|
2019-12-08 00:32:00 +05:30
|
|
|
const { transform } = require('webpack-utils/intl-loader');
|
2019-11-27 13:39:51 +05:30
|
|
|
|
|
|
|
module.exports = {
|
2020-05-24 04:38:24 +05:30
|
|
|
/**
|
|
|
|
* @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 13:39:51 +05:30
|
|
|
};
|