WIP: service worker importScripts compatible

This commit is contained in:
Matthew Raymer
2023-11-10 02:53:57 -05:00
parent 8a4960855e
commit a5e367fdf1
3 changed files with 19 additions and 18 deletions

File diff suppressed because one or more lines are too long

View File

@@ -469,7 +469,4 @@ async function getNotificationCount() {
return result;
}
module.exports = {
getNotificationCount
};
export { getNotificationCount };

View File

@@ -5,8 +5,12 @@ module.exports = {
output: {
filename: 'safari-notifications.js',
path: path.resolve(__dirname, 'dist'),
library: 'customModule',
libraryTarget: 'var'
libraryTarget: 'self'
},
optimization: {
splitChunks: {
chunks: 'async'
}
},
mode: 'production',
target: 'webworker',