Browse Source

WIP: service worker importScripts compatible

master
Matthew Raymer 1 year ago
parent
commit
a5e367fdf1
  1. 2
      dist/safari-notifications.js
  2. 5
      src/safari-notifications.js
  3. 8
      webpack.config.js

2
dist/safari-notifications.js

File diff suppressed because one or more lines are too long

5
src/safari-notifications.js

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

8
webpack.config.js

@ -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',

Loading…
Cancel
Save