prettier 2.0.0 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -10
- package/bin-prettier.js +568 -496
- package/doc.js +9 -3
- package/index.js +155 -121
- package/package.json +1 -1
- package/parser-babel.js +1 -1
- package/parser-flow.js +1 -1
- package/parser-graphql.js +1 -1
- package/parser-html.js +1 -1
- package/parser-markdown.js +8 -2
- package/parser-postcss.js +2 -2
- package/parser-typescript.js +3 -3
- package/standalone.js +136 -114
- package/third-party.js +1 -1
package/third-party.js
CHANGED
|
@@ -91,7 +91,7 @@ var importFresh = moduleId => {
|
|
|
91
91
|
|
|
92
92
|
const parent = eval('require').cache[parentPath]; // If `filePath` and `parentPath` are the same, cache will already be deleted so we won't get a memory leak in next step
|
|
93
93
|
|
|
94
|
-
return parent === undefined ? eval('require')(filePath) : parent.
|
|
94
|
+
return parent === undefined ? eval('require')(filePath) : parent.require(filePath); // In case cache doesn't have parent, fall back to normal require
|
|
95
95
|
};
|
|
96
96
|
|
|
97
97
|
var isArrayish = function isArrayish(obj) {
|