Skip to content

Commit cb526f5

Browse files
authored
Update to target es5 for use-subscription (#36159)
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
1 parent a4aa1df commit cb526f5

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/next/compiled/use-subscription/index.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/next/taskfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ export async function ncc_use_subscription(task, opts) {
313313
react: 'react',
314314
'react-dom': 'react-dom',
315315
},
316+
target: 'es5',
316317
})
317318
.target('compiled/use-subscription')
318319
}

0 commit comments

Comments
 (0)