Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Commit

Permalink
storysource: Modify to make parser or filepath always specified story…
Browse files Browse the repository at this point in the history
  • Loading branch information
isoppp committed Jun 1, 2018
1 parent 05e419c commit 6ac4983
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions addons/storysource/src/loader/generate-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ function prettifyCode(source, { prettierConfig, parser, filepath }) {
...prettierConfig,
filepath,
};
} else {
config = {
...prettierConfig,
parser: 'babylon',
};
}
}

Expand Down

0 comments on commit 6ac4983

Please sign in to comment.