Skip to content

Commit

Permalink
docs: fix vite example
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Aug 2, 2023
1 parent 4393b1b commit 05265c5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,6 @@ If you are using vite simply import MQTT.js as you would any other module. In or
```js
// other imports
import { NodeGlobalsPolyfillPlugin } from '@esbuild-plugins/node-globals-polyfill'
import { NodeModulesPolyfillPlugin } from "@esbuild-plugins/node-modules-polyfill";
import nodePolyfills from "rollup-plugin-polyfill-node";


Expand All @@ -864,7 +863,6 @@ export default defineConfig({
buffer: true,
process: true,
}),
NodeModulesPolyfillPlugin(),
],
}
},
Expand All @@ -881,7 +879,7 @@ export default defineConfig({
This requires you to install some plugins:

```bash
npm install -D @esbuild-plugins/node-globals-polyfill @esbuild-plugins/node-modules-polyfill rollup-plugin-polyfill-node
npm install -D @esbuild-plugins/node-globals-polyfill rollup-plugin-polyfill-node
```

<a name="qos"></a>
Expand Down

0 comments on commit 05265c5

Please sign in to comment.