Prevent using node APIs in a browser bundle
Reviewed By: antonk52 Differential Revision: D36771197 fbshipit-source-id: aec3edc22d4c4148ae0fe7a0c87c701323112acd
This commit is contained in:
committed by
Facebook GitHub Bot
parent
976399b950
commit
ec068e814b
@@ -202,7 +202,15 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ['plugins/**/*.ts', 'plugins/**/*.tsx'],
|
files: [
|
||||||
|
'plugins/**/*.ts',
|
||||||
|
'plugins/**/*.tsx',
|
||||||
|
'flipper-ui-core/**/*.tsx',
|
||||||
|
'flipper-common/**/*.tsx',
|
||||||
|
'flipper-frontend-core/**/*.tsx',
|
||||||
|
'flipper-ui-browser/**/*.tsx',
|
||||||
|
'flipper-plugin/**/*.tsx',
|
||||||
|
],
|
||||||
excludedFiles: [
|
excludedFiles: [
|
||||||
'plugins/**/serverAddOn.ts',
|
'plugins/**/serverAddOn.ts',
|
||||||
'plugins/**/serverAddOn.tsx',
|
'plugins/**/serverAddOn.tsx',
|
||||||
@@ -269,8 +277,13 @@ module.exports = {
|
|||||||
// Overide rules for tests and service scripts (postinstall). Allow Node APIs usage there.
|
// Overide rules for tests and service scripts (postinstall). Allow Node APIs usage there.
|
||||||
{
|
{
|
||||||
files: [
|
files: [
|
||||||
'plugins/**/__tests__/*.tsx',
|
'plugins/**/__tests__/**/*.tsx',
|
||||||
'plugins/**/__tests__/*.ts',
|
'plugins/**/__tests__/**/*.ts',
|
||||||
|
'flipper-ui-core/**/__tests__/**/*.tsx',
|
||||||
|
'flipper-common/**/__tests__/**/*.tsx',
|
||||||
|
'flipper-frontend-core/**/__tests__/**/*.tsx',
|
||||||
|
'flipper-ui-browser/**/__tests__/**/*.tsx',
|
||||||
|
'flipper-plugin/**/__tests__/**/*.tsx',
|
||||||
'plugins/postinstall.tsx',
|
'plugins/postinstall.tsx',
|
||||||
// TODO: Remove specific plugin overrides down below
|
// TODO: Remove specific plugin overrides down below
|
||||||
'plugins/fb/kaios-portal/kaios-debugger-client/client.tsx',
|
'plugins/fb/kaios-portal/kaios-debugger-client/client.tsx',
|
||||||
|
|||||||
Reference in New Issue
Block a user