Commit 012064cc by sarahkf Committed by GitHub

Merge pull request #15514 from edx/sarahkf/translation-jsx-files

Update configuration to translate jsx files
parents d613f37d 7ed9ba19
......@@ -4,3 +4,6 @@ input_encoding = utf-8
[django: **/template/**.html]
input_encoding = utf-8
[reactjs: **.jsx]
input_encoding = utf-8
......@@ -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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment