mirror of
https://github.com/xodio/xod.git
synced 2026-03-25 18:16:55 +01:00
29 lines
553 B
JavaScript
29 lines
553 B
JavaScript
|
|
const validate = require('webpack-validator');
|
|
const merge = require('webpack-merge');
|
|
|
|
const baseConfig = require('./base.js');
|
|
|
|
const config = merge.smart(baseConfig, {
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /.*\.spec\.js$/,
|
|
loaders: [
|
|
'babel?presets[]=es2015',
|
|
],
|
|
},
|
|
{
|
|
test: /src\/runtime\/.*\.js$/,
|
|
loader: 'babel?presets[]=es2015',
|
|
},
|
|
{
|
|
test: /node_modules\/espruino\/.*\.js$/,
|
|
loader: 'null',
|
|
},
|
|
],
|
|
},
|
|
});
|
|
|
|
module.exports = validate(config);
|