Skip to content

Commit

Permalink
fixing webpack build
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhuignoto committed Apr 26, 2023
1 parent 3a6097c commit 6ab046d
Show file tree
Hide file tree
Showing 6 changed files with 8,657 additions and 3,938 deletions.
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@
"@babel/preset-env": "^7.21.4",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.4",
"@relative-ci/agent": "^4.1.3",
"@sentry/react": "^7.47.0",
"@sentry/tracing": "^7.47.0",
"@relative-ci/agent": "^4.1.4",
"@sentry/react": "^7.49.0",
"@sentry/tracing": "^7.49.0",
"@types/bluebird": "^3.5.38",
"@types/node": "^18.15.11",
"@types/react": "^18.0.34",
"@types/react-dom": "^18.0.11",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@types/node": "^18.16.1",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.1",
"@typescript-eslint/eslint-plugin": "^5.59.1",
"@typescript-eslint/parser": "^5.59.1",
"@vitest/coverage-c8": "^0.30.1",
"autoprefixer": "^10.4.14",
"cssnano": "^6.0.0",
"esbuild": "^0.17.16",
"eslint": "^8.38.0",
"esbuild": "^0.17.18",
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jest": "^27.2.1",
Expand All @@ -41,28 +41,28 @@
"fork-ts-checker-webpack-plugin": "^8.0.0",
"husky": "^8.0.3",
"lint-staged": "^13.2.1",
"postcss": "^8.4.21",
"postcss": "^8.4.23",
"postcss-bem-linter": "^3.3.0",
"postcss-import": "^15.1.0",
"postcss-preset-env": "^8.3.1",
"postcss-preset-env": "^8.3.2",
"postcss-reporter": "^7.0.5",
"prettier": "^2.8.7",
"prettier": "^2.8.8",
"pretty-quick": "^3.1.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"remove-files-webpack-plugin": "^1.5.0",
"sass": "^1.62.0",
"snyk": "^1.1141.0",
"stylelint": "15.4.0",
"sass": "^1.62.1",
"snyk": "^1.1146.0",
"stylelint": "15.6.0",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-sass-guidelines": "^10.0.0",
"stylelint-order": "^6.0.3",
"stylelint-scss": "^4.6.0",
"thread-loader": "^3.0.4",
"thread-loader": "^4.0.1",
"ts-toolbelt": "^9.6.0",
"turbo": "^1.9.0",
"turbo": "^1.9.3",
"typescript": "^5.0.4",
"webpack": "^5.78.0",
"webpack": "^5.80.0",
"webpack-stats-plugin": "^1.1.1"
},
"scripts": {
Expand Down
22 changes: 11 additions & 11 deletions packages/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"react-transition-group": "^4.4.5",
"resize-observer-polyfill": "^1.5.1",
"use-debounce": "^9.0.4",
"vite": "4.2.1"
"vite": "4.3.2"
},
"devDependencies": {
"@axe-core/react": "^4.6.1",
Expand All @@ -53,25 +53,25 @@
"@babel/preset-react": "^7.18.6",
"@csstools/postcss-sass": "^5.0.1",
"@playwright/test": "^1.32.3",
"@types/react": "^18.0.34",
"@types/react-dom": "^18.0.11",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.1",
"@types/react-instantsearch-dom": "^6.12.3",
"@types/react-syntax-highlighter": "^15.5.6",
"@types/react-transition-group": "^4.4.5",
"@vitejs/plugin-react": "3.1.0",
"@vitejs/plugin-react": "4.0.0",
"autoprefixer": "^10.4.14",
"cssnano": "^6.0.0",
"esbuild": "^0.17.16",
"postcss": "^8.4.21",
"esbuild": "^0.17.18",
"postcss": "^8.4.23",
"postcss-bem-linter": "^3.3.0",
"postcss-prefixer": "^2.1.3",
"postcss-preset-env": "^8.3.1",
"prettier": "^2.8.7",
"postcss-preset-env": "^8.3.2",
"prettier": "^2.8.8",
"recoil": "^0.7.7",
"rimraf": "^5.0.0",
"sass": "^1.62.0",
"snyk": "^1.1141.0",
"stylelint": "15.4.0",
"sass": "^1.62.1",
"snyk": "^1.1146.0",
"stylelint": "15.6.0",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-sass-guidelines": "^10.0.0",
"stylelint-scss": "^4.6.0",
Expand Down
16 changes: 8 additions & 8 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"@types/bluebird": "^3.5.38",
"@types/jest": "^29.5.0",
"@types/jest": "^29.5.1",
"@types/jest-axe": "^3.5.5",
"@types/node": "^18.15.11",
"@types/node": "^18.16.1",
"@types/react-syntax-highlighter": "^15.5.6",
"@types/react-transition-group": "^4.4.5",
"@types/testing-library__jest-dom": "^5.14.5",
"@vitejs/plugin-react": "3.1.0",
"@vitejs/plugin-react": "4.0.0",
"@vitest/browser": "^0.30.1",
"@vitest/ui": "^0.30.1",
"autoprefixer": "^10.4.14",
Expand All @@ -72,21 +72,21 @@
"jest-axe": "^7.0.1",
"jsdom": "^21.1.1",
"mini-css-extract-plugin": "^2.7.5",
"postcss": "^8.4.21",
"postcss": "^8.4.23",
"postcss-loader": "7.0.2",
"postcss-preset-env": "^8.3.1",
"postcss-preset-env": "^8.3.2",
"resize-observer-polyfill": "^1.5.1",
"sass-loader": "13.2.0",
"terser-webpack-plugin": "^5.3.7",
"ts-loader": "^9.4.2",
"ts-toolbelt": "^9.6.0",
"typescript": "^5.0.4",
"typescript-plugin-css-modules": "^5.0.1",
"vite": "4.2.1",
"vite": "4.3.2",
"vitest": "0.30.1",
"webpack": "^5.78.0",
"webpack": "^5.80.0",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-cli": "^5.0.1",
"webpack-cli": "^5.0.2",
"webpack-node-externals": "^3.0.0"
},
"browserslist": [
Expand Down
29 changes: 15 additions & 14 deletions packages/lib/webpack.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import path, { dirname } from 'path';
import PostCSSpresetEnv from 'postcss-preset-env';
import RemovePlugin from 'remove-files-webpack-plugin';
import TerserPlugin from 'terser-webpack-plugin';
import threadLoader from 'thread-loader';
// import threadLoader from 'thread-loader';
import { fileURLToPath } from 'url';
import webpack from 'webpack';
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
Expand All @@ -22,18 +22,19 @@ const isProduction = process.env.NODE_ENV === 'production';

const stylesHandler = MiniCssExtractPlugin.loader;

threadLoader.warmup(
{
// pool options, like passed to loader options
// must match loader options to boot the correct pool
},
[
// modules to load
// can be any module, i. e.
'babel-loader',
'ts-loader',
]
);
// threadLoader.warmup(
// {
// // pool options, like passed to loader options
// // must match loader options to boot the correct pool
// },
// [
// // modules to load
// // can be any module, i. e.
// 'babel-loader',
// 'ts-loader',
// ]
// );

const config = {
cache: {
type: 'filesystem',
Expand Down Expand Up @@ -61,7 +62,7 @@ const config = {
exclude: /node_modules/,
test: /\.(tsx|ts)$/,
use: [
'thread-loader',
// 'thread-loader',
{
loader: 'babel-loader',
options: {
Expand Down
30 changes: 15 additions & 15 deletions packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,30 @@
"@babel/preset-env": "^7.21.4",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.4",
"@percy/cli": "^1.23.0",
"@percy/storybook": "^4.3.5",
"@storybook/addon-a11y": "^7.0.3",
"@storybook/addon-actions": "^7.0.3",
"@storybook/addon-docs": "^7.0.3",
"@storybook/addon-essentials": "^7.0.3",
"@storybook/addon-links": "^7.0.3",
"@storybook/addon-storysource": "^7.0.3",
"@percy/cli": "^1.24.0",
"@percy/storybook": "^4.3.6",
"@storybook/addon-a11y": "^7.0.7",
"@storybook/addon-actions": "^7.0.7",
"@storybook/addon-docs": "^7.0.7",
"@storybook/addon-essentials": "^7.0.7",
"@storybook/addon-links": "^7.0.7",
"@storybook/addon-storysource": "^7.0.7",
"@storybook/preset-scss": "^1.0.3",
"@storybook/react": "^7.0.3",
"@storybook/source-loader": "^7.0.3",
"@types/node": "^18.15.11",
"@storybook/react": "^7.0.7",
"@storybook/source-loader": "^7.0.7",
"@types/node": "^18.16.1",
"acorn": "^8.8.2",
"babel-loader": "^9.1.2",
"chromatic": "^6.17.3",
"css-loader": "5.2.6",
"postcss": "^8.4.21",
"postcss": "^8.4.23",
"postcss-loader": "7.0.2",
"postcss-preset-env": "8.3.1",
"sass": "^1.62.0",
"postcss-preset-env": "8.3.2",
"sass": "^1.62.1",
"sass-loader": "10.1.1",
"style-loader": "3.3.2",
"typescript": "^5.0.4",
"webpack": "^5.78.0"
"webpack": "^5.80.0"
},
"dependencies": {
"react": "link:..\\..\\node_modules\\react",
Expand Down
Loading

1 comment on commit 6ab046d

@vercel
Copy link

@vercel vercel bot commented on 6ab046d Apr 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.