diff options
author | 2023-06-21 21:08:05 +0200 | |
---|---|---|
committer | 2023-06-21 12:08:05 -0700 | |
commit | b691212c6e97e96f3b90e9db20765dcc01b339fd (patch) | |
tree | 08bb35cb8e6c41d74b2dcdc085e8ec1c5cacf902 | |
parent | 69f558db8e0eba637febdc62c6ba752444b54401 (diff) | |
download | bun-b691212c6e97e96f3b90e9db20765dcc01b339fd.tar.gz bun-b691212c6e97e96f3b90e9db20765dcc01b339fd.tar.zst bun-b691212c6e97e96f3b90e9db20765dcc01b339fd.zip |
Update module resolution order docs (#3372)
If I'm reading and interpreting [these lines](https://github.com/oven-sh/bun/blob/69f558db8e0eba637febdc62c6ba752444b54401/src/options.zig#L605-L627) correct, the module resolution order [in the current docs](https://bun.sh/docs/runtime/modules#resolution) is outdated.
This change will fix the order.
-rw-r--r-- | docs/runtime/modules.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/runtime/modules.md b/docs/runtime/modules.md index 32bd78cc3..42f2a08e6 100644 --- a/docs/runtime/modules.md +++ b/docs/runtime/modules.md @@ -108,8 +108,8 @@ Once it finds the `foo` package, Bun reads the `package.json` to determine how t "worker": "./index.js", "module": "./index.js", "node": "./index.js", - "browser": "./index.js", - "default": "./index.js" // lowest priority + "default": "./index.js", + "browser": "./index.js" // lowest priority } } ``` |