Skip to content

Commit

Permalink
Update src/common/resolve.js
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Apr 20, 2020
1 parent 0f0e8ce commit 7d741b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/resolve.js
@@ -1,6 +1,6 @@
"use strict";

let { resolve } = eval("require");
let resolve = eval("require").resolve;

// In the VS Code and Atom extension `require` is overridden and `require.resolve` doesn't support the 2nd argument.
if (resolve.length === 1 || process.env.PRETTIER_FALLBACK_RESOLVE) {
Expand Down

0 comments on commit 7d741b2

Please sign in to comment.