diff --git a/conf/locale/babel_third_party.cfg b/conf/locale/babel_third_party.cfg index 8a6a50af06b41016e0b4e834e9047051426c5651..e77f22e07a825feb1474fe486792da5a5583befa 100644 --- a/conf/locale/babel_third_party.cfg +++ b/conf/locale/babel_third_party.cfg @@ -4,3 +4,6 @@ input_encoding = utf-8 [django: **/template/**.html] input_encoding = utf-8 + +[reactjs: **.jsx] +input_encoding = utf-8 diff --git a/webpack.config.js b/webpack.config.js index 546b91af28dfaa7db1bf57e60fd3faee183f67f8..88f9810aa09186ad899a7235745f12a106d3d87f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -93,7 +93,7 @@ var wpconfig = { ) }, { - test: /\.js$/, + test: /\.(js|jsx)$/, exclude: [ /node_modules/, namespacedRequireFiles @@ -125,7 +125,7 @@ var wpconfig = { }, resolve: { - extensions: ['.js', '.json', '.coffee'], + extensions: ['.js', '.jsx', '.json', '.coffee'], alias: { 'edx-ui-toolkit': 'edx-ui-toolkit/src/', // @TODO: some paths in toolkit are not valid relative paths 'jquery.ui': 'jQuery-File-Upload/js/vendor/jquery.ui.widget.js',