How to package chart.js electron-builder

Super new to this, so might be a noob questions. I am using chart.js within electron which if i run ```npx electron .` runs fine. However if I try to build with electron builder I do not see the chart.

I have tried to add “chart.js”: “^1.0.0” to the dependencies in package.json without any luck. Is there something I am missing?

How it is declared in main.js`
const { chart } = require(‘chart.js’);