Obsidian not defined'?

I am currently writing a plugin that renders math functions inside a code block. I used webpack for bundling node libraries like yaml and function-plot. In the config, I added ‘obsidian’ as an external. The plugin builds with a warning about the bundle size but that doesn’t matter since it’s local anyways. When I add the plugin, it always says ‘‘obsidian’ not defined’. I guess it’s looking for obsidian in the global context and can’t find it? Here’s the repo: https://GitHub.com/leonhma/obsidian-funtionplot Do you know how to configure webpack properly? There’s probably some really easy fix but I’m also new to typescript, webpack and developing plugins for obsidian…