From ad7152f4efcfe862c6095eae9ceada3a0b3fbd6e Mon Sep 17 00:00:00 2001 From: Christian Rackerseder Date: Wed, 15 Mar 2017 09:05:32 +0100 Subject: [PATCH 1/3] Fixed nodeExternals in precompiling-with-webpack.md --- docs/recipes/precompiling-with-webpack.md | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/recipes/precompiling-with-webpack.md b/docs/recipes/precompiling-with-webpack.md index ae9b5308b..9f845d7f4 100644 --- a/docs/recipes/precompiling-with-webpack.md +++ b/docs/recipes/precompiling-with-webpack.md @@ -10,19 +10,19 @@ The AVA [readme](https://github.com/avajs/ava#transpiling-imported-modules) ment const nodeExternals = require('webpack-node-externals'); module.exports = { - entry: ['src/tests.js'], - target: 'node', - output: { - path: '_build', - filename: 'tests.js' - }, - externals: nodeExternals, - module: { - rules: [{ - test: /\.(js|jsx)$/, - use: 'babel-loader' - }] - } + entry: ['src/tests.js'], + target: 'node', + output: { + path: '_build', + filename: 'tests.js' + }, + externals: [nodeExternals()], + module: { + rules: [{ + test: /\.(js|jsx)$/, + use: 'babel-loader' + }] + } }; ``` From 76a33e1c078a2b85cecb02a556d169c060999c49 Mon Sep 17 00:00:00 2001 From: Christian Rackerseder Date: Wed, 15 Mar 2017 09:35:13 +0100 Subject: [PATCH 2/3] Fixed indentation --- docs/recipes/precompiling-with-webpack.md | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/recipes/precompiling-with-webpack.md b/docs/recipes/precompiling-with-webpack.md index 9f845d7f4..a10095898 100644 --- a/docs/recipes/precompiling-with-webpack.md +++ b/docs/recipes/precompiling-with-webpack.md @@ -10,19 +10,19 @@ The AVA [readme](https://github.com/avajs/ava#transpiling-imported-modules) ment const nodeExternals = require('webpack-node-externals'); module.exports = { - entry: ['src/tests.js'], - target: 'node', - output: { - path: '_build', - filename: 'tests.js' - }, - externals: [nodeExternals()], - module: { - rules: [{ - test: /\.(js|jsx)$/, - use: 'babel-loader' - }] - } + entry: ['src/tests.js'], + target: 'node', + output: { + path: '_build', + filename: 'tests.js' + }, + externals: [nodeExternals()], + module: { + rules: [{ + test: /\.(js|jsx)$/, + use: 'babel-loader' + }] + } }; ``` From 73fc33bf2a4ca9de8a21da1434e8db97a02b7983 Mon Sep 17 00:00:00 2001 From: Christian Rackerseder Date: Wed, 15 Mar 2017 09:35:56 +0100 Subject: [PATCH 3/3] Fixed indentation --- docs/recipes/precompiling-with-webpack.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/recipes/precompiling-with-webpack.md b/docs/recipes/precompiling-with-webpack.md index a10095898..ef11376ab 100644 --- a/docs/recipes/precompiling-with-webpack.md +++ b/docs/recipes/precompiling-with-webpack.md @@ -19,8 +19,8 @@ module.exports = { externals: [nodeExternals()], module: { rules: [{ - test: /\.(js|jsx)$/, - use: 'babel-loader' + test: /\.(js|jsx)$/, + use: 'babel-loader' }] } };