const webpack = require('webpack');
const path = require('path');

const entry = path.join(__dirname, './Sources/index.js');
const sourcePath = path.join(__dirname, './Sources');
const outputPath = path.join(__dirname, './dist');

const vtkRules = require('./Utilities/config/rules-vtk.js');
const linterRules = require('./Utilities/config/rules-linter.js');

module.exports = {
  entry,
  output: {
    path: outputPath,
    filename: 'vtk.js',
    libraryTarget: 'umd',
  },
  module: {
    rules: [].concat(linterRules, vtkRules),
  },
  resolve: {
    modules: [
      path.resolve(__dirname, 'node_modules'),
      sourcePath,
    ],
    alias: {
      'vtk.js': __dirname,
    },
  },
};

@@ -1,40 +1,4 @@
-const webpack = require('webpack');%0A
 cons
@@ -523,23 +523,16 @@
 dules: %5B
-%0A      
 path.res
@@ -563,22 +563,16 @@
 dules'),
-%0A     
  sourceP
@@ -574,22 +574,16 @@
 urcePath
-,%0A    
 %5D,%0A    a

use prettier to reformat config file