Browse Source

use named export

master
Conduitry 4 years ago
parent
commit
a46df603fd
  1. 2
      README.md
  2. 2
      rollup.config.js
  3. 1
      src/index.js

2
README.md

@ -37,6 +37,8 @@ This getter retrieves the context created by the appropriate asynchronously ance
## Example
```javascript
let { Contexty } = require('contexty')
let contexty = new Contexty()
let counter = 0

2
rollup.config.js

@ -1,5 +1,5 @@
export default {
entry: './src/Contexty.js',
entry: './src/index.js',
external: ['async_hooks'],
interop: false,
sourceMap: true,

1
src/index.js

@ -0,0 +1 @@
export { default as Contexty } from './Contexty.js'