Skip to content

Adding support for ESM compatible output

Compare
Choose a tag to compare
@thetutlage thetutlage released this 26 May 08:37

Added a new method useEsm to the IoC container, which will wrap the output of use inside an object, which is compatible with ESM module.

ioc.bind('App/Foo', () => {
  return 'foo'
})

ioc.use('App/Foo') // 'foo'
ioc.useEsm('App/Foo') // { default: 'foo', __esModule: true }
  • feat(ioc): add useEsm method that wraps the use output to esm module ce8523d
  • chore(package): update dependencies 6dbeb8d

v6.0.0...v6.0.1