Skip to content

Commit

Permalink
fix: compat improvements (#2248)
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey authored Jun 13, 2024
1 parent b256161 commit 0ced6e1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .changeset/four-beers-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"marko": patch
"@marko/compiler": patch
"@marko/translator-default": patch
"@marko/translator-interop-class-tags": patch
---

Fix typo in upgrade docs and adding missing `browser-refresh` module.
5 changes: 5 additions & 0 deletions packages/marko/browser-refresh.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// This is a noop in Marko 5 and should eventually be removed.
// In Marko 5 `browser-refresh` is automatically enabled if you use the require hook, and
// browser refresh is running. We still expose this API to simplify the upgrade process from
// Marko 4 to Marko 5.
exports.enable = () => {};
2 changes: 1 addition & 1 deletion packages/marko/docs/marko-5-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Run your application and tests to ensure your project is in a working state. The

```bash
# Update Marko, and related ecosystem dependencies
npx -y ncu -u \
npx -y npm-check-updates -u \
marko \
`# for webpack projects` \
@marko/webpack \
Expand Down

0 comments on commit 0ced6e1

Please sign in to comment.