Skip to content

Commit d635fe1

Browse files
committed
Build: Depend on the published @semantic-ui/utils, so the router installs anywhere
The core package read utils through the house's local link, file:../../../next/packages/utils, which only resolves with next checked out beside the repo. utils 0.18.0 is on npm with the three names the router imports beyond 0.17.0, isDate, markTimeline and measureTimeline, so the package depends on ^0.18.0 and the lock pins the registry tarball. Its exports list the source entry before the browser bundle, so a bundler and vite resolve the source as before. Measured against the registry copy and unchanged: core 11,888 B br with utils bundled, scaffold 1,828, dom plugin 1,141, integration 441.
1 parent 6eaeed7 commit d635fe1

2 files changed

Lines changed: 9 additions & 15 deletions

File tree

‎package-lock.json‎

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

‎packages/nav-router/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"./reactive": "./src/reactive-router.js"
2222
},
2323
"dependencies": {
24-
"@semantic-ui/utils": "file:../../../next/packages/utils"
24+
"@semantic-ui/utils": "^0.18.0"
2525
},
2626
"files": [
2727
"src",

0 commit comments

Comments
 (0)