From f3daa5579b11014d49df8c3122bca1181a64fa4c Mon Sep 17 00:00:00 2001 From: Jason Quense Date: Tue, 8 Oct 2019 15:32:57 -0400 Subject: [PATCH] feat: passthroguh all intl options (#426) --- packages/babel-preset/intl-preset.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/babel-preset/intl-preset.js b/packages/babel-preset/intl-preset.js index f626265c..f70d5bd6 100644 --- a/packages/babel-preset/intl-preset.js +++ b/packages/babel-preset/intl-preset.js @@ -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 }], ], }; };