You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the initial setup and first test implemented I've noticed that the VUs are consuming huge amount of memory (17-20MB per each), while the output files in dist/ are around 300-500KB. Initially I thought it was due to the node_modules being packed , but I did cut those and the memory consumption stays the same. My webpack config below:
const path = require('path');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');
const GlobEntries = require('webpack-glob-entries');
module.exports = {
mode: 'production',
entry: GlobEntries('./tests/*test*.ts'), // Generates multiple entry for each test
output: {
path: path.join(__dirname, 'dist'),
libraryTarget: 'commonjs',
filename: '[name].js',
},
resolve: {
extensions: ['.ts', '.js'],
},
module: {
rules: [
{
test: /\.ts$/,
use: 'babel-loader',
exclude: /node_modules/,
},
],
},
target: 'node',
externals: /^(k6|https?\:\/\/)(\/.*)?/,
// Generate map files for compiled scripts
devtool: false,
stats: {
colors: true,
},
plugins: [
new CleanWebpackPlugin(),
// Copy assets to the destination folder
// see `src/post-file-test.ts` for an test example using an asset
new CopyPlugin({
patterns: [{
from: path.resolve(__dirname, 'assets'),
noErrorOnMissing: true
}],
}),
],
optimization: {
minimize: true,
splitChunks: {
cacheGroups: {
graphql: {
test: /[\\/]deps[\\/]/,
name: 'deps',
chunks: 'all',
}
}
}
},
};
The text was updated successfully, but these errors were encountered:
After the initial setup and first test implemented I've noticed that the VUs are consuming huge amount of memory (17-20MB per each), while the output files in
dist/
are around 300-500KB. Initially I thought it was due to thenode_modules
being packed , but I did cut those and the memory consumption stays the same. My webpack config below:The text was updated successfully, but these errors were encountered: