In one of our projects we use @apollo/client wich itself includes this package. After bundling as ES module, there is a top-level variable caches that seems to collide with the one in the Browser's API.
So, using the optimism's ES module in a browser with type=module doesn't work. Is that the correct behaviour?