From 8e4e8eeead994bebb19cab406b009b39e2337fe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Sospedra?= Date: Sun, 27 Dec 2015 18:34:56 +0100 Subject: [PATCH] fix(test): Fix the retrocomp with node 4- Added the webpack babel preset es2015 --- webpack.test.config.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/webpack.test.config.js b/webpack.test.config.js index 00cf259..6650952 100644 --- a/webpack.test.config.js +++ b/webpack.test.config.js @@ -2,8 +2,18 @@ module.exports = { entry: './index.js', output: { path: './test/', - filename: `logatim.tmp.js`, + filename: 'logatim.tmp.js', library: 'logatim', libraryTarget: 'umd' + }, + module: { + loaders: [{ + test: /\.js?$/, + exclude: /(node_modules|bower_components)/, + loader: 'babel', + query: { + presets: ['es2015'] + } + }] } }