Linter checks for extraneous dependencies
Summary: Added eslint rule "no-extraneous-imports" which disallow using modules which are not listed as dependencies in the corresponding package.json. Fixed a bunch of reported errors after the rule applied. Reviewed By: passy Differential Revision: D21186848 fbshipit-source-id: 0af9ac4b3fffdfd0ab7c23ae4ff12a3f5989d5e9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
17ccdeaf6f
commit
ec07272c78
@@ -55,7 +55,7 @@ export async function generatePluginEntryPoints() {
|
||||
}
|
||||
|
||||
const minifierConfig = {
|
||||
minifierPath: 'metro-minify-terser',
|
||||
minifierPath: require.resolve('metro-minify-terser'),
|
||||
minifierConfig: {
|
||||
// see: https://www.npmjs.com/package/terser
|
||||
keep_fnames: true,
|
||||
|
||||
Reference in New Issue
Block a user