Skip to content

Commit 5e10091

Browse files
author
Henrik Ruscon
committed
fix export for non esm
1 parent d5ffa2a commit 5e10091

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Hapi from 'hapi'
22
import Inert from 'inert'
33
import Joi from 'joi'
44
import { name, version } from '../package'
5-
import plugin from '../lib'
5+
import plugin from '../'
66

77
const options = {
88
sortTags: 'ordered',

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
require = require('esm')(module /*, options */)
2-
module.exports = require('./lib')
2+
module.exports = require('./lib').default

0 commit comments

Comments
 (0)