Browse Source

use named export

master
Conduitry 3 years ago
parent
commit
a46df603fd
3 changed files with 4 additions and 1 deletions
  1. +2
    -0
      README.md
  2. +1
    -1
      rollup.config.js
  3. +1
    -0
      src/index.js

+ 2
- 0
README.md View File

@ -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

+ 1
- 1
rollup.config.js View File

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

+ 1
- 0
src/index.js View File

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

Loading…
Cancel
Save