Fix buffer warning when starting CPU / kaois plugin
Summary: When the CPU or kaois plugins are started, they show a buffer deprecated warning, caused by the fact that they ship their own adbkit version, which is unpatched. This diff makes sure that the adbkit as shipped with Flipper is used instead. Reviewed By: jknoxville Differential Revision: D18327441 fbshipit-source-id: 9cab23b9701adc070210cc4133fc8760031bd1d7
This commit is contained in:
committed by
Facebook Github Bot
parent
5ca8b6dc30
commit
3963535610
@@ -44,6 +44,8 @@ module.exports = ({types: t}) => ({
|
||||
path.replaceWith(t.identifier('global.React'));
|
||||
} else if (args[0].value === 'react-dom') {
|
||||
path.replaceWith(t.identifier('global.ReactDOM'));
|
||||
} else if (args[0].value === 'adbkit') {
|
||||
path.replaceWith(t.identifier('global.adbkit'));
|
||||
} else if (
|
||||
// require a file not a pacakge
|
||||
args[0].value.indexOf('/') > -1 &&
|
||||
|
||||
Reference in New Issue
Block a user