Sorry, I should have mentioned. The example is written in TypeScript. I’m not quite sure what you need to do to use TypeScript config plugins, but I suppose you have to compile it.
If your app is in plain JavaScript, you can use JavaScript for the config plugin, but you’ll need to use require instead of import.