Skip to content

Commit

Permalink
Update to target es5 for use-subscription (#36159)
Browse files Browse the repository at this point in the history
This ensures we use the `es5` target when pre-compiling the `use-subscription` dependency similar to our other pre-compiled browser dependencies. 

## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

Fixes: #36146
  • Loading branch information
ijjk committed Apr 14, 2022
1 parent a4aa1df commit cb526f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/next/compiled/use-subscription/index.js

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

1 change: 1 addition & 0 deletions packages/next/taskfile.js
Expand Up @@ -313,6 +313,7 @@ export async function ncc_use_subscription(task, opts) {
react: 'react',
'react-dom': 'react-dom',
},
target: 'es5',
})
.target('compiled/use-subscription')
}
Expand Down

0 comments on commit cb526f5

Please sign in to comment.