Skip to content

Commit

Permalink
Prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
IjzerenHein committed Jul 31, 2019
1 parent 4fa046d commit 744030b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"prettier.singleQuote": true
}
2 changes: 1 addition & 1 deletion src/haul.config.extend.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import originalConfig from '../../../haul.config.js';

export default {
webpack: env => {
const config = originalConfig.webpack(env);
const config = originalConfig.webpack(env);
config.plugins.push(new Visualizer());
return config;
}
Expand Down
4 changes: 2 additions & 2 deletions src/haul.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import Visualizer from 'webpack-visualizer-plugin';
import { createWebpackConfig } from "haul";
import { createWebpackConfig } from 'haul';
import { getEntryPoint } from './get-entry-point';

export default {
webpack: env => {
const config = createWebpackConfig({
entry: getEntryPoint(),
entry: getEntryPoint()
})(env);

config.module.rules[1].exclude = /node_modules(?!.*[\/\\](react|@react-navigation|@react-native-community|@expo|pretty-format|haul|metro))/;
Expand Down
12 changes: 4 additions & 8 deletions src/webpack.haul.extend.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ const Visualizer = require('webpack-visualizer-plugin');
const originalConfig = require('../../../webpack.haul.js');

module.exports = function(context, config) {
config = originalConfig(context, config);
return Object.assign(
{},
config,
{
plugins: (config.plugins || []).concat([new Visualizer()])
}
);
config = originalConfig(context, config);
return Object.assign({}, config, {
plugins: (config.plugins || []).concat([new Visualizer()])
});
};

0 comments on commit 744030b

Please sign in to comment.