Skip to content

Add info about resolving bundler warnings to README #46

@gshokanov

Description

@gshokanov

Hey!
When using this plugin I found that webpack complains about missing exports due to types not being removed by babel when used in inversify decorators. Although everything works fine these warnings can be resolved by using type imports:

import { injectable, inject } from 'inversify';
import type { Service } from './Service';
import { ServiceIdentifier } from './ServiceIdentifier';

@injectable
export class OtherService {
  constructor(
    @inject(ServiceIdentifier) service: Service
  ) {}
}

Just a small suggestion to add this to README if you think it fits there as some people might want to get rid of the warnings but don't know how.

Metadata

Metadata

Labels

documentationNeeds better documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions