Skip to content

Commit

Permalink
Merge pull request #29669 from slax57/fix-source-loader-prettier-import
Browse files Browse the repository at this point in the history
source-loader: Fix parser imports from prettier
  • Loading branch information
kasperpeulen authored Dec 27, 2024
2 parents 82777d7 + 4c7ca98 commit 3b18e74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import parseFlow from 'prettier/plugins/flow';
import * as parseFlow from 'prettier/plugins/flow';

function parse(source) {
return parseFlow.parsers.flow.parse(source);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import parseJs from 'prettier/plugins/babel';
import * as parseJs from 'prettier/plugins/babel';

function parse(source) {
try {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import parseTs from 'prettier/plugins/typescript';
import * as parseTs from 'prettier/plugins/typescript';

function parse(source) {
try {
Expand Down

0 comments on commit 3b18e74

Please sign in to comment.