Skip to content

Commit

Permalink
chore: remove now built-in "next-transpile-modules" package
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast committed Oct 15, 2024
1 parent bfa6591 commit 2dca547
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 43 deletions.
1 change: 0 additions & 1 deletion frontend/benefit/applicant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"next-router-mock": "0.9.12",
"next-compose-plugins": "^2.2.1",
"next-i18next": "^13.0.3",
"next-transpile-modules": "^9.1.0",
"pdfjs-dist": "3.11.174",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
1 change: 0 additions & 1 deletion frontend/benefit/handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"next-compose-plugins": "^2.2.1",
"next-i18next": "^13.0.3",
"next-router-mock": "0.9.12",
"next-transpile-modules": "^9.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-input-mask": "^2.0.4",
Expand Down
1 change: 0 additions & 1 deletion frontend/kesaseteli/employer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"next-compose-plugins": "^2.2.1",
"next-i18next": "^13.0.3",
"next-router-mock": "0.9.12",
"next-transpile-modules": "^9.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.30.0",
Expand Down
1 change: 0 additions & 1 deletion frontend/kesaseteli/handler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"next": "14.2.12",
"next-compose-plugins": "^2.2.1",
"next-i18next": "^13.0.3",
"next-transpile-modules": "^9.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.30.0",
Expand Down
1 change: 0 additions & 1 deletion frontend/kesaseteli/youth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"next-compose-plugins": "^2.2.1",
"next-i18next": "^13.0.3",
"next-router-mock": "0.9.12",
"next-transpile-modules": "^9.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.30.0",
Expand Down
7 changes: 3 additions & 4 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
const webpack = require('webpack');
const path = require('path');
const withPlugins = require('next-compose-plugins');
const { withSentryConfig } = require('@sentry/nextjs');
const withTranspileModules = require('next-transpile-modules');
// https://nextjs.org/docs/api-reference/next.config.js/introduction
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
const pc = require('picocolors');
Expand Down Expand Up @@ -63,7 +61,7 @@ const nextConfig = (override) => ({
eslint: {
ignoreDuringBuilds: NEXTJS_IGNORE_ESLINT,
},

transpilePackages: ['@frontend'],
webpack: (config) => {
config.resolve.fallback = {
fs: false,
Expand Down Expand Up @@ -124,11 +122,12 @@ if (!NEXTJS_DISABLE_SENTRY) {
// https://github.com/getsentry/sentry-webpack-plugin#options.
// silent: isProd, // Suppresses all logs
dryRun: NEXTJS_SENTRY_UPLOAD_DRY_RUN,
disableLogger: !NEXTJS_SENTRY_DEBUG,
});
} else {
console.warn(`${pc.yellow('notice')}- Sentry is disabled (NEXTJS_DISABLE_SENTRY)`);
}

const plugins = [[withTranspileModules, { transpileModules: ['@frontend'] }]];
const plugins = [];

module.exports = async (phase) => withPlugins(plugins, config(phase))(phase, { undefined });
1 change: 0 additions & 1 deletion frontend/tet/admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"next": "14.2.12",
"next-compose-plugins": "^2.2.1",
"next-i18next": "^13.0.3",
"next-transpile-modules": "^9.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.30.0",
Expand Down
1 change: 0 additions & 1 deletion frontend/tet/youth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"next": "14.2.12",
"next-compose-plugins": "^2.2.1",
"next-i18next": "^13.0.3",
"next-transpile-modules": "^9.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-leaflet": "^3.2.5",
Expand Down
32 changes: 0 additions & 32 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6549,14 +6549,6 @@ enhance-visitors@^1.0.0:
dependencies:
lodash "^4.13.1"

enhanced-resolve@^5.10.0:
version "5.12.0"
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.12.0.tgz#300e1c90228f5b570c4d35babf263f6da7155634"
integrity sha512-QHTXI/sZQmko1cbDoNAa3mJ5qhWUUNAq3vR0/YiD379fWQrcfuoX1+HW2S0MTt7XmoPLapdaDKUtelUSPic7hQ==
dependencies:
graceful-fs "^4.2.4"
tapable "^2.2.0"

enhanced-resolve@^5.12.0:
version "5.15.0"
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz#1af946c7d93603eb88e9896cee4904dc012e9c35"
Expand All @@ -6565,14 +6557,6 @@ enhanced-resolve@^5.12.0:
graceful-fs "^4.2.4"
tapable "^2.2.0"

enhanced-resolve@^5.7.0:
version "5.9.2"
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.9.2.tgz#0224dcd6a43389ebfb2d55efee517e5466772dd9"
integrity sha512-GIm3fQfwLJ8YZx2smuHpBKkXC1yOk+OBEmKckVyL0i/ea8mqDEykK3ld5dgH1QYPNyT/lIllxV2LULnxCHaHkA==
dependencies:
graceful-fs "^4.2.4"
tapable "^2.2.0"

enquirer@~2.3.6:
version "2.3.6"
resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d"
Expand Down Expand Up @@ -11886,22 +11870,6 @@ [email protected]:
resolved "https://registry.yarnpkg.com/next-router-mock/-/next-router-mock-0.9.12.tgz#a64934c9c86f60f6b3c6a7e37e72e51ed5feeea0"
integrity sha512-PzKn70RSqO50GHyYyhd4WJb9I526Abfq2VDP+YPV8yqlaR38OKtQAcWr3njR75UG+Ik6HououZHm7ucxl6LSnA==

next-transpile-modules@^9.0.0:
version "9.0.0"
resolved "https://registry.yarnpkg.com/next-transpile-modules/-/next-transpile-modules-9.0.0.tgz#133b1742af082e61cc76b02a0f12ffd40ce2bf90"
integrity sha512-VCNFOazIAnXn1hvgYYSTYMnoWgKgwlYh4lm1pKbSfiB3kj5ZYLcKVhfh3jkPOg1cnd9DP+pte9yCUocdPEUBTQ==
dependencies:
enhanced-resolve "^5.7.0"
escalade "^3.1.1"

next-transpile-modules@^9.1.0:
version "9.1.0"
resolved "https://registry.yarnpkg.com/next-transpile-modules/-/next-transpile-modules-9.1.0.tgz#dffd2563bf76f8afdb28f0611948f46252ca65ef"
integrity sha512-yzJji65xDqcIqjvx5vPJcs1M+MYQTzLM1pXH/qf8Q88ohx+bwVGDc1AeV+HKr1NwvMCNTpwVPSFI7cA5WdyeWA==
dependencies:
enhanced-resolve "^5.10.0"
escalade "^3.1.1"

[email protected]:
version "14.2.12"
resolved "https://registry.yarnpkg.com/next/-/next-14.2.12.tgz#39d52c090c40980f4ae56f485ad234b777ebc955"
Expand Down

0 comments on commit 2dca547

Please sign in to comment.