Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Aug 17, 2022
1 parent 8249291 commit abc39a4
Showing 1 changed file with 1 addition and 6 deletions.
@@ -1,15 +1,10 @@
import { webpack } from 'next/dist/compiled/webpack/webpack'

/**
* For server-side CSS imports, we need to ignore the actual module content but
* still trigger the hot-reloading diff mechanism. So here we put the content
* inside a comment.
*/

const NextServerCSSLoader: webpack.loader.Loader = function (
this: any,
source: string | Buffer
) {
const NextServerCSSLoader = function (this: any, source: string | Buffer) {
this.cacheable && this.cacheable()

return `export default "${(typeof source === 'string'
Expand Down

0 comments on commit abc39a4

Please sign in to comment.