Skip to content

Commit

Permalink
WIP loader patch
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Oct 26, 2023
1 parent 46696e4 commit 49c10e5
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ test-results

# Yarn stuff
/**/.yarn/*
!/**/.yarn/patches
!/**/.yarn/releases
!/**/.yarn/plugins
!/**/.yarn/sdks
Expand Down
79 changes: 79 additions & 0 deletions code/.yarn/patches/next-npm-13.5.4-c8e2015917.patch

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion code/frameworks/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
"@types/babel__core": "^7",
"@types/babel__plugin-transform-runtime": "^7",
"@types/babel__preset-env": "^7",
"next": "13.5.4",
"next": "patch:next@npm%3A13.5.4#~/.yarn/patches/next-npm-13.5.4-c8e2015917.patch",
"typescript": "^4.9.3",
"webpack": "^5.89.0"
},
Expand Down
3 changes: 3 additions & 0 deletions code/frameworks/nextjs/src/css/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ export const configureCss = (baseConfig: WebpackConfig, nextConfig: NextConfig):
},
require.resolve('postcss-loader'),
],
// We transform the "target.css" files from next.js into Javascript
// for Next.js to support fonts, so it should be ignored by the css-loader.
exclude: /next\/.*\/target.css$/,
};
}
});
Expand Down

0 comments on commit 49c10e5

Please sign in to comment.