mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
support .jsx
This commit is contained in:
parent
7291fd1187
commit
df84fce953
@ -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: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user