From 259481f506343b643d445207e1a9a9ca56eb5574 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Wed, 2 Aug 2023 08:18:46 +0200 Subject: [PATCH] docs: fix example --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6334b28d4..329dcb229 100644 --- a/README.md +++ b/README.md @@ -776,7 +776,7 @@ Closes the Store. MQTT.js is bundled using [browserify](http://browserify.org/). You can find the browser build in the `dist` folder. ```js -import mqtt from 'mqtt/dist/mqtt.min' +import * as mqtt from 'mqtt/dist/mqtt.min' ``` @@ -796,7 +796,7 @@ See for the full documentation on version ranges. If you are using webpack simply import MQTT.js as you would any other module. ```js -import mqtt from 'mqtt' +import * as mqtt from 'mqtt' const client = mqtt.connect('ws://test.mosquitto.org:8080') ```