I created a simple content addin for excel and in my js file I have this section of code:
(function () {
"use strict";
// The initialize function must be run each time a new page is loaded
Office.initialize = function (reason) {
var puppeteer = require('puppeteer');
$(document).ready(function () {
$("#compare").click(() {
var browser = await puppeteer.launch();
}
});
};
This doesnt work and I was hoping for puppeteer to work and open a browser. How can I import and use puppeteer in the script?