WIP: service worker importScripts compatible
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -469,7 +469,4 @@ async function getNotificationCount() {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export { getNotificationCount };
|
||||||
module.exports = {
|
|
||||||
getNotificationCount
|
|
||||||
};
|
|
||||||
|
|||||||
+6
-2
@@ -5,8 +5,12 @@ module.exports = {
|
|||||||
output: {
|
output: {
|
||||||
filename: 'safari-notifications.js',
|
filename: 'safari-notifications.js',
|
||||||
path: path.resolve(__dirname, 'dist'),
|
path: path.resolve(__dirname, 'dist'),
|
||||||
library: 'customModule',
|
libraryTarget: 'self'
|
||||||
libraryTarget: 'var'
|
},
|
||||||
|
optimization: {
|
||||||
|
splitChunks: {
|
||||||
|
chunks: 'async'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mode: 'production',
|
mode: 'production',
|
||||||
target: 'webworker',
|
target: 'webworker',
|
||||||
|
|||||||
Reference in New Issue
Block a user