bun-types 1.1.43-canary.20250105T140503 → 1.1.43-canary.20250106T140553
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/bundler/plugins.md +2 -2
- package/package.json +1 -1
package/docs/bundler/plugins.md
CHANGED
|
@@ -69,7 +69,7 @@ await Bun.build({
|
|
|
69
69
|
|
|
70
70
|
### Namespaces
|
|
71
71
|
|
|
72
|
-
`onLoad` and `onResolve` accept an optional `namespace` string. What is a
|
|
72
|
+
`onLoad` and `onResolve` accept an optional `namespace` string. What is a namespace?
|
|
73
73
|
|
|
74
74
|
Every module has a namespace. Namespaces are used to prefix the import in transpiled code; for instance, a loader with a `filter: /\.yaml$/` and `namespace: "yaml:"` will transform an import from `./myfile.yaml` into `yaml:./myfile.yaml`.
|
|
75
75
|
|
|
@@ -239,7 +239,7 @@ One of the arguments passed to the `onLoad` callback is a `defer` function. This
|
|
|
239
239
|
|
|
240
240
|
This allows you to delay execution of the `onLoad` callback until all other modules have been loaded.
|
|
241
241
|
|
|
242
|
-
This is useful for returning
|
|
242
|
+
This is useful for returning contents of a module that depends on other modules.
|
|
243
243
|
|
|
244
244
|
##### Example: tracking and reporting unused exports
|
|
245
245
|
|
package/package.json
CHANGED