Releases: oxc-project/oxc-resolver
Releases · oxc-project/oxc-resolver
v1.0.0
Stable Release.
Full Changelog: https://github.com/oxc-project/oxc_resolver/compare/0.6.2...
0.6.2
What's Changed
- fix: throw recursion error when resolving browser fields with recursion by @Boshen in #17
- fix: browser field resolving relative to path to itself by @Boshen in #34
- feat: return not found when recursing non-existent file by @Boshen in #36
- perf(resolver): remove extra large fields from raw package json by @Boshen in #23
- refactor: use FxHashMap instead of FxIndexMap for BrowserField by @Boshen in #33
Full Changelog: 0.6.0...0.6.2
0.6.0
- remove unused
impl<T> FileSystem for Arc<T>
#5 - feat(resolver): add a realpath to package.json
Using the realpath
for resolving browser field will lead to missing queries.
This fixes a cases where browserField
fails to read.
styled-components
is using a trick for loading browser modules:
"main": "dist/styled-components.cjs.js",
"module": "./dist/styled-components.esm.js",
"browser": {
"./dist/styled-components.esm.js": "./dist/styled-components.browser.esm.js",
"./dist/styled-components.cjs.js": "./dist/styled-components.browser.cjs.js"
},
Module resolution has to go from "module": "./dist/styled-components.esm.js"
, then to browser
's
"./dist/styled-components.esm.js": "./dist/styled-components.browser.esm.js"
part in order for things to
get resolved correctly.