Skip to content

Commit 3b18e74

Browse files
authored
Merge pull request #29669 from slax57/fix-source-loader-prettier-import
source-loader: Fix parser imports from prettier
2 parents 82777d7 + 4c7ca98 commit 3b18e74

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

code/lib/source-loader/src/abstract-syntax-tree/parsers/parser-flow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import parseFlow from 'prettier/plugins/flow';
1+
import * as parseFlow from 'prettier/plugins/flow';
22

33
function parse(source) {
44
return parseFlow.parsers.flow.parse(source);

code/lib/source-loader/src/abstract-syntax-tree/parsers/parser-js.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import parseJs from 'prettier/plugins/babel';
1+
import * as parseJs from 'prettier/plugins/babel';
22

33
function parse(source) {
44
try {

code/lib/source-loader/src/abstract-syntax-tree/parsers/parser-ts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import parseTs from 'prettier/plugins/typescript';
1+
import * as parseTs from 'prettier/plugins/typescript';
22

33
function parse(source) {
44
try {

0 commit comments

Comments
 (0)