Skip to content

Instantly share code, notes, and snippets.

@velut
Created January 10, 2020 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velut/de1fb2ce34c498a60a75a01b8b0d8d15 to your computer and use it in GitHub Desktop.
Save velut/de1fb2ce34c498a60a75a01b8b0d8d15 to your computer and use it in GitHub Desktop.
diff --git a/node_modules/prettier/index.js b/node_modules/prettier/index.js
index 96cfec8..d455497 100644
--- a/node_modules/prettier/index.js
+++ b/node_modules/prettier/index.js
@@ -44202,7 +44202,8 @@ function _withPlugins(fn) {
var args = Array.from(arguments);
var opts = args[1] || {};
args[1] = Object.assign({}, opts, {
- plugins: loadPlugins_1(opts.plugins, opts.pluginSearchDirs)
+ // WORKAROUND: Improve formatting performance
+ plugins: internalPlugins
});
return fn.apply(null, args);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment