mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-19 23:28:50 +08:00
14 lines
295 B
JavaScript
14 lines
295 B
JavaScript
const os = require('os');
|
|
const flowRemoveTypes = require('flow-remove-types/register');
|
|
|
|
const frt = flowRemoveTypes({
|
|
exclude: (() => {
|
|
if (os.platform() === 'win32') {
|
|
return '/\node_modules(?!\vue)/';
|
|
}
|
|
return '/node_modules(?!/vue)/';
|
|
})(),
|
|
});
|
|
|
|
module.exports = frt;
|