Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update README.md
Browse files Browse the repository at this point in the history
isaac-mason committed May 4, 2024
1 parent b5d6377 commit 3539944
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions packages/recast-navigation/README.md
Original file line number Diff line number Diff line change
@@ -42,9 +42,17 @@ Demonstrations of how to use the library in different environments (such as Node
npm install recast-navigation
```

If you are using Vite, you may need to opt `recast-navigation` out of pre-bundling:

```js
export default defineConfig(() => ({
optimizeDeps: { exclude: ['recast-navigation'] }
)}
```
**Usage without bundlers**
You can use import maps to load the library in the browser without a bundler:
You can use import maps to use the library without a bundler:
```html
<script type="importmap">
@@ -66,16 +74,6 @@ You can use import maps to load the library in the browser without a bundler:
A full example can be found here: https://github.com/isaac-mason/recast-navigation-js/tree/main/examples/no-bundler/index.html
**Usage with bundlers**

If you are using Vite, you may need to opt `recast-navigation` out of pre-bundling:

```js
export default defineConfig(() => ({
optimizeDeps: { exclude: ['recast-navigation'] }
)}
```
## Documentation
<!-- REMOVE-FROM-DOCS-START -->

0 comments on commit 3539944

Please sign in to comment.