Skip to content

Commit

Permalink
feat: passthroguh all intl options (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Oct 8, 2019
1 parent 561d56a commit f3daa55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-preset/intl-preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ const intlPlugin = require('babel-plugin-react-intl').default;
const namespacePlugin = require('./namespace-plugin');

module.exports = function reactIntlPreset(_, options = {}) {
const { messagesDir, prefix } = options;
const { prefix, ...rest } = options;

return {
plugins: [
[namespacePlugin, { prefix }],
[intlPlugin, { messagesDir, extractSourceLocation: true }],
[intlPlugin, { extractSourceLocation: true, ...rest }],
],
};
};

0 comments on commit f3daa55

Please sign in to comment.