From f290d905f0e6691e5df65630369e68216554d314 Mon Sep 17 00:00:00 2001 From: Mojtaba Samimi Date: Tue, 1 Oct 2024 15:02:39 -0400 Subject: [PATCH] remove unused webpack config --- webpack.config.js | 70 ----------------------------------------------- 1 file changed, 70 deletions(-) delete mode 100644 webpack.config.js diff --git a/webpack.config.js b/webpack.config.js deleted file mode 100644 index c696a006a94..00000000000 --- a/webpack.config.js +++ /dev/null @@ -1,70 +0,0 @@ -var path = require('path'); -var NodePolyfillPlugin = require('node-polyfill-webpack-plugin'); - -module.exports = { - target: ['web', 'es5'], - entry: './lib/index.js', - output: { - path: path.resolve('./build'), - filename: 'plotly.js', - library: { - name: 'Plotly', - type: 'umd', - umdNamedDefine: false - } - }, - module: { - rules: [{ - test: /\.js$/, - exclude: /node_modules/, - use: { - loader: 'babel-loader' - } - }, { - test: /\.js$/, - include: /node_modules[\\\/](buffer|d3-color|d3-interpolate|is-mobile)[\\\/]/, - use: { - loader: 'babel-loader', - options: { - babelrc: false, - configFile: false, - presets: [ - '@babel/preset-env' - ] - } - }, - }, { - test: /\.glsl$/, - include: /node_modules/, - use: { - loader: 'raw-loader' - } - }, { - test: /\.(js|glsl)$/, - use: [ - 'ify-loader' - ] - }, { - test: /\.css$/, - use: [ - 'style-loader', - 'css-loader' - ] - }] - }, - resolve: { - fallback: { - stream: require.resolve('stream-browserify') - } - }, - plugins: [ - new NodePolyfillPlugin({ additionalAliases: ['process'] }) - ], - watchOptions: { - ignored: [ - '**/node_modules', - '**/stackgl_modules' - ], - poll: 1000, // Check for changes every second - } -};