Revert "Switch print/embed to async (#13104)" (#13210)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-08-02 18:11:34 +08:00
1 parent b12396d69a
commit cdb1494170
70 files changed
+973 -1161

No files matched your search

@@ -16,12 +16,8 @@ module.exports = {
},
printers: {
foo: {
async print(path) {
const { default: prettier } = await import(
"../../../../../../config/prettier-entry.js"
);
const { concat } = prettier.doc.builders;
return concat(["foo+", path.getValue().text]);
print(path) {
return ["foo+", path.getValue().text];
},
},
},
@@ -16,12 +16,8 @@ module.exports = {
},
printers: {
foobar: {
async print(path) {
const { default: prettier } = await import(
"../../../../../../config/prettier-entry.js"
);
const { concat } = prettier.doc.builders;
return concat(["foobar+", path.getValue().text]);
print(path) {
return ["foobar+", path.getValue().text];
},
},
},
@@ -15,12 +15,8 @@ module.exports = {
},
printers: {
bar: {
async print(path) {
const { default: prettier } = await import(
"../../../../../config/prettier-entry.js"
);
const { concat } = prettier.doc.builders;
return concat(["content from `prettier-plugin-bar` package + ", path.getValue().text]);
print(path) {
return ["content from `prettier-plugin-bar` package + ", path.getValue().text];
},
},
},