Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Apr 20, 2020
1 parent 61b3d4d commit a5950e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/resolve.js
@@ -1,9 +1,10 @@
"use strict";

// `/scripts/build/babel-plugins/transform-custom-require.js` doesn't support destructuring.
// eslint-disable-next-line prefer-destructuring
let resolve = eval("require").resolve;

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

0 comments on commit a5950e8

Please sign in to comment.