client server
Summary: Migrating Server, Client and UninitializedClient to TypeScript Reviewed By: passy Differential Revision: D16687855 fbshipit-source-id: 402e4dbcd5d283d3e280d4d8b312662829457886
This commit is contained in:
committed by
Facebook Github Bot
parent
53c1eee641
commit
5f53087c7e
@@ -46,8 +46,8 @@ function transform({filename, options, src}) {
|
||||
} else {
|
||||
plugins.push(
|
||||
require('../node_modules/@babel/plugin-transform-typescript'),
|
||||
require('../node_modules/@babel/plugin-transform-modules-commonjs'),
|
||||
require('../node_modules/@babel/plugin-proposal-class-properties'),
|
||||
require('../node_modules/@babel/plugin-transform-modules-commonjs'),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -73,13 +73,11 @@ function transform({filename, options, src}) {
|
||||
// electron imports are working out of the box.
|
||||
plugins.push(require('./electron-requires.js'));
|
||||
}
|
||||
|
||||
if (isPlugin) {
|
||||
plugins.push(require('./flipper-requires.js'));
|
||||
} else {
|
||||
plugins.push(require('./import-react.js'));
|
||||
}
|
||||
|
||||
ast = babel.transformFromAst(ast, src, {
|
||||
ast: true,
|
||||
babelrc: !filename.includes('node_modules'),
|
||||
|
||||
Reference in New Issue
Block a user