Skip to content

Commit

Permalink
changed module import
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunday-Crunk committed Sep 4, 2024
1 parent 592e860 commit f4e5740
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/4.4.1/main_4.4.1.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/core/WorkerManager.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//import SparkMD5 from 'spark-md5';
import SparkMD5 from 'spark-md5';

class CurateWorkerManager {
constructor() {
Expand Down
11 changes: 2 additions & 9 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path');
const webpack = require('webpack');
const packageJson = require('./package.json');
const TerserPlugin = require('terser-webpack-plugin');
//const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');

module.exports = {
entry: './src/js/index.js',
Expand All @@ -16,7 +16,7 @@ module.exports = {
new webpack.DefinePlugin({
'process.env.VERSION': JSON.stringify(packageJson.version),
}),
//new BundleAnalyzerPlugin(), // Include the bundle analyzer plugin
new BundleAnalyzerPlugin(), // Include the bundle analyzer plugin
],
module: {
rules: [
Expand All @@ -31,13 +31,6 @@ module.exports = {
],
use: 'babel-loader'
},
{
test: /\.worker\.js$/,
include: [
path.resolve(__dirname, 'src/js/workers'),
],
use: { loader: 'worker-loader' }
}
]
},
optimization: {
Expand Down

0 comments on commit f4e5740

Please sign in to comment.