use named export
This commit is contained in:
parent
7b455cf93d
commit
a46df603fd
3 changed files with 4 additions and 1 deletions
|
@ -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,5 +1,5 @@
|
|||
export default {
|
||||
entry: './src/Contexty.js',
|
||||
entry: './src/index.js',
|
||||
external: ['async_hooks'],
|
||||
interop: false,
|
||||
sourceMap: true,
|
||||
|
|
1
src/index.js
Normal file
1
src/index.js
Normal file
|
@ -0,0 +1 @@
|
|||
export { default as Contexty } from './Contexty.js'
|
Reference in a new issue