Skip to content

Commit

Permalink
chore: accept also .json on snowpack plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Moreno committed Jan 19, 2021
1 parent 9b00303 commit fe8639e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/snowpack-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function extractLinguiMessages(_?, linguiConfig: LinguiConfigOpts = {}) {
return {
name: '@lingui/snowpack-plugin',
resolve: {
input: ['.po'],
input: ['.po', '.json'],
output: ['.js'],
},
async load({ filePath }: SnowpackLoadOpts) {
Expand Down
1 change: 1 addition & 0 deletions packages/snowpack-plugin/test/__snapshots__/index.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Object {
resolve: Object {
input: Array [
.po,
.json,
],
output: Array [
.js,
Expand Down

0 comments on commit fe8639e

Please sign in to comment.