Skip to content

Commit

Permalink
fix(#36435): apply correct fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Apr 26, 2022
1 parent 26efcc5 commit a5b966a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions packages/next/head.js
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
var head = require('./dist/shared/lib/head')
Object.assign(head.default, head)
module.exports = head.default
module.exports = require('./dist/shared/lib/head')
2 changes: 1 addition & 1 deletion packages/next/taskfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -1923,7 +1923,7 @@ export default async function (task) {
export async function shared(task, opts) {
await task
.source(opts.src || 'shared/**/*.+(js|ts|tsx)')
.swc('server', { dev: opts.dev })
.swc('server', { dev: opts.dev, interopClientDefaultExport: true })
.target('dist/shared')
notify('Compiled shared files')
}
Expand Down

0 comments on commit a5b966a

Please sign in to comment.