If NetSuite complains when you try to upload a script file that imports sweetalert, try bringing it into the client script using a dynamic import
that's
Copy code
require(['sweetalert2'], function(Swal) { ... });
or if you're using es6+ imports
Copy code
// in async function
const Swal = await import('sweetalert2').default;