Created a web component using LitElement and created a columnrange chart using highcharts in that, now I want to add the border radius only to the top left and top right corners of the bar, and for that, I installed highcharts-border-radius external plugin to give borderRadiusTopLeft and borderRadiusTopRight, but I am not able to import this plugin in the component. After importing it, getting an error that Highcharts is not defined.
Tried importing like:
import "highcharts-border-radius";
I also tried using the following:
const borderRadius = require("highcharts-border-radius");
borderRadius(Highcharts);
When using the second approach, then got an error that ReferenceError: require is not defined.
Any help importing this external plugin in the LIT element would be appreciated.