support .jsx

This commit is contained in:
Michael Bradley, Jr 2018-08-16 16:49:32 -05:00
parent 7291fd1187
commit df84fce953

View File

@ -34,7 +34,7 @@ try {
const entry = Object.keys(embarkAssets).reduce((obj, key) => { const entry = Object.keys(embarkAssets).reduce((obj, key) => {
embarkAssets[key] embarkAssets[key]
.filter(file => file.filename.match(/\.js$/)) .filter(file => file.filename.match(/\.jsx?$/))
.forEach(file => { .forEach(file => {
let file_path = file.path; let file_path = file.path;
if (!file.path.match(/^\.\//)) { if (!file.path.match(/^\.\//)) {
@ -66,7 +66,7 @@ const base = {
loader: 'url-loader?limit=100000' loader: 'url-loader?limit=100000'
}, },
{ {
test: /\.js$/, test: /\.jsx?$/,
loader: 'babel-loader', loader: 'babel-loader',
exclude: /(node_modules|bower_components|\.embark[\\/]versions)/, exclude: /(node_modules|bower_components|\.embark[\\/]versions)/,
options: { options: {