Skip to content

Commit

Permalink
Remove babel/webpack dependencies to make the tools app build succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 26, 2023
1 parent 294d6b6 commit a7aee63
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 1,093 deletions.
10 changes: 0 additions & 10 deletions packages/apps/tools/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,6 @@ const config = {
WALLET_CONNECT_PROJECT_ID: process.env.WALLET_CONNECT_PROJECT_ID,
WALLET_CONNECT_RELAY_URL: process.env.WALLET_CONNECT_RELAY_URL,
},
webpack: (config, { isServer }) => {
config.module.rules.push({
test: /\.(spec|test).*$/,
loader: 'ignore-loader',
});
if (!isServer) {
config.resolve.fallback.fs = false;
}
return config;
},
};

module.exports = withVanillaExtract(nextTranslate(config));
2 changes: 0 additions & 2 deletions packages/apps/tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"scripts": {
"build": "pnpm run generate:contracts && next build",
"dev": "next dev",
"eject": "react-scripts eject",
"format": "pnpm run --sequential /^format:.*/",
"format:lint": "pnpm run lint:src --fix",
"format:md": "remark README.md -o --use @kadena-dev/markdown",
Expand Down Expand Up @@ -74,7 +73,6 @@
"eslint": "^8.45.0",
"eslint-config-next": "13.4.5",
"happy-dom": "^12.9.1",
"ignore-loader": "~0.1.2",
"next-router-mock": "^0.9.10",
"prettier": "~3.0.3",
"typescript": "5.2.2",
Expand Down
4 changes: 0 additions & 4 deletions packages/libs/react-components/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,4 @@ module.exports = {
docs: {
autodocs: true,
},
transform: {
'^.+\\.[tj]sx?$': 'babel-jest',
'^.+\\.mdx$': '@storybook/addon-docs/jest-transform-mdx',
},
};
4 changes: 0 additions & 4 deletions packages/libs/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.0",
"@kadena-dev/eslint-config": "workspace:*",
"@kadena-dev/heft-rig": "workspace:*",
"@kadena-dev/lint-package": "workspace:*",
Expand Down
7 changes: 1 addition & 6 deletions packages/libs/react-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.21.0",
"@kadena-dev/eslint-config": "workspace:*",
"@kadena-dev/heft-rig": "workspace:*",
"@kadena-dev/lint-package": "workspace:*",
Expand Down Expand Up @@ -105,7 +101,6 @@
"typescript": "5.2.2",
"vite-tsconfig-paths": "^4.2.1",
"vitest": "^0.34.6",
"vitest-dom": "^0.1.1",
"webpack": "~5.88.2"
"vitest-dom": "^0.1.1"
}
}
Loading

0 comments on commit a7aee63

Please sign in to comment.