bun_bun_bundle 0.5.1 → 0.5.2
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.
- checksums.yaml +4 -4
- data/README.md +11 -0
- data/lib/bun/bun_bundle.js +3 -2
- data/lib/bun_bun_bundle/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: abea1141b149da530439b191dda1330c09bd9fe4cf59ff8d13d03fb9c507e8d0
|
|
4
|
+
data.tar.gz: a52ee15896ef53643cc62ba368e200bd76306fda27a7379509bbfe52e368998e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9309ab82def987376ff3ac02cb3c7bc2f21605fc2475afd5f521a69338aef17d00eb18a93e11165e68dc2965094ae04030aad5f022cdd0126cf2279056963731
|
|
7
|
+
data.tar.gz: 9f4aa14608e0d6c1c7a56b15eedc97e6fa5a24b3f1745626c988acf11c5d2f986b5cdbb7e28c5fb1b8b965480d509b929abff4f1563eb95677c285e41b9e6f7b
|
data/README.md
CHANGED
|
@@ -217,6 +217,17 @@ Place a `config/bun.json` in your project root:
|
|
|
217
217
|
> Creating a `bun.json` file is entirely optional. All values shown above are
|
|
218
218
|
> defaults, you only need to specify what you want to override.
|
|
219
219
|
|
|
220
|
+
If you're developing inside a Docker container, set `listenHost` so the
|
|
221
|
+
WebSocket server accepts connections from the host machine:
|
|
222
|
+
|
|
223
|
+
```json
|
|
224
|
+
{
|
|
225
|
+
"devServer": {
|
|
226
|
+
"listenHost": "0.0.0.0"
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
```
|
|
230
|
+
|
|
220
231
|
## Plugins
|
|
221
232
|
|
|
222
233
|
Three plugins are included out of the box.
|
data/lib/bun/bun_bundle.js
CHANGED
|
@@ -268,12 +268,13 @@ export default {
|
|
|
268
268
|
await this.build()
|
|
269
269
|
await this.watch()
|
|
270
270
|
|
|
271
|
-
const {host, port, secure} = this.config.devServer
|
|
271
|
+
const {host, listenHost, port, secure} = this.config.devServer
|
|
272
|
+
const hostname = listenHost || (secure ? '0.0.0.0' : host)
|
|
272
273
|
const debug = this.debug
|
|
273
274
|
const wsClients = this.wsClients
|
|
274
275
|
|
|
275
276
|
Bun.serve({
|
|
276
|
-
hostname
|
|
277
|
+
hostname,
|
|
277
278
|
port,
|
|
278
279
|
fetch(req, server) {
|
|
279
280
|
if (server.upgrade(req)) return
|