Skip to content

Commit

Permalink
- Docs: Indicate changed cjs extension for UMD builds
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Jul 5, 2021
1 parent 64444b2 commit 4487aae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ const result = JSONPath({path: '...', json});

### Browser

For browser usage you can directly include `dist/index-browser-umd.js`; no Browserify
magic is necessary:
For browser usage you can directly include `dist/index-browser-umd.cjs`; no
Browserify magic is necessary:

```html
<!-- Polyfill recommended by Babel for items not covered for older
browsers in dist -->
<script src="node_modules/core-js-bundle/minified.js"></script>

<script src="node_modules/jsonpath-plus/dist/index-browser-umd.js"></script>
<script src="node_modules/jsonpath-plus/dist/index-browser-umd.cjs"></script>

<script>
Expand Down

0 comments on commit 4487aae

Please sign in to comment.