Importing an npm package into a foundry system

import minimist from 'minimist';

That line alone when included in my module's hook file is resulting in the system breaking.

Do we need to include webpack/Vite/or something of the sort? Why isn't the software handling this automatically? Is there a tutorial we can follow?
Was this page helpful?