You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pages/docs/manual/latest/build-configuration.mdx
+14-2Lines changed: 14 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,18 @@ List of ReScript dependencies. Just like `package.json`'s dependencies, they'll
80
80
81
81
Note that only sources marked with `"type":"dev"` will be able to resolve modules from `bs-dev-dependencies`.
82
82
83
+
## pinned-dependencies
84
+
85
+
**Since 8.4**: List of pinned dependencies. A pinned dependency will always be rebuilt whenever you build a toplevel package (e.g. your main app) with `bsb -make-world`.
86
+
87
+
This is useful for working on multiple independent ReScript packages simultaneously. More usage details can be found in our [monorepo setup](./build-monorepos) page.
88
+
89
+
## external-stdlib
90
+
91
+
**Since 9.0**: This setting allows depending on an externally built stdlib package (instead of a locally built stdlib runtime). Useful for shipping packages that are only consumed in JS or TS without any dependencies to the ReScript development toolchain.
92
+
93
+
More details can be found on our [external stdlib](./build-external-stdlib) page.
94
+
83
95
## reason, refmt (old)
84
96
85
97
`reason` config is enabled by default. To turn on JSX for [ReasonReact](https://reasonml.github.io/reason-react/), specify:
@@ -136,7 +148,7 @@ This configuration only applies to you, when you develop the project. When the p
136
148
137
149
## suffix
138
150
139
-
Either `".js"`or `".bs.js"`. Strongly prefer the latter.
151
+
Either `".js"`, `".mjs"`, `".cjs"`or `".bs.js"`. Currently prefer `bs.js` for now.
140
152
141
153
### Design Decisions
142
154
@@ -145,7 +157,7 @@ Generating JS files with the `.bs.js` suffix means that, on the JS side, you can
145
157
- It's immediately clear that we're dealing with a generated JS file here.
146
158
- It avoids clashes with a potential `theFile.js` file in the same folder.
147
159
- It avoids the need of using a build system loader for ReScript files. This + in-source build means integrating a ReScript project into your pure JS codebase **basically doesn't touch anything in your build pipeline at all**.
148
-
-The `.bs.js`suffix [lets bsb track JS artifacts much better](build-overview.md#tips-tricks).
160
+
-[genType](/docs/gentype/latest/introduction) requires `bs.js`for compiled JS artifacts. If you are using `genType`, you need to use `bs.js` for now.
0 commit comments