I think this library is not designed to work on web browsers but maybe there is a solution. The decorator uses the getMetadataArgsStorage function which is declared at /index.ts. The /index.ts imports a lot of things that are leading you to the problem.

You can see here how the getMetadataArgsStorage function uses defaultContainer and MetadataArgsStorage.

If getMetadataArgsStorage was moved from the index.ts to a new file maybe it will work for you but you are going to need to send a PR to the project on GitHub.

The problem is this line because ConnectionManager imports all the drivers:

I recommend you to explain your use case to the authors of typeorm. Also maybe mention that it would be good if not all the drivers are always imported by default. It would be better to only load the required driver.

Email codedump link for How do i prevent decorators from importing node modules in TypeScript?