Skip to content

Commit

Permalink
add load instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
75lb committed Sep 5, 2021
1 parent d8c1ce1 commit 846ed4f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,22 @@ Result:
{ stack: ['two'] }
```

### Load anywhere

This library is compatible with Node.js, the Web and any style of module loader. It can be loaded anywhere, natively without transpilation.

Within a Node.js ECMAScript Module:

```js
import deepMerge from '@75lb/deep-merge'
```

Within an modern browser ECMAScript Module:

```js
import deepMerge from './node_modules/@75lb/deep-merge/dist/index.mjs'
```

* * *

&copy; 2021 [Lloyd Brookes](https://github.com/75lb) \<75pound@gmail.com\>.
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@rollup/plugin-node-resolve": "^13.0.4",
"c8": "^7.8.0",
"coveralls": "^3.1.1",
"rollup": "^2.56.2",
"rollup": "^2.56.3",
"test-runner": "^0.9.8"
}
}

0 comments on commit 846ed4f

Please sign in to comment.