File tree Expand file tree Collapse file tree 4 files changed +17
-12
lines changed
Expand file tree Collapse file tree 4 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66
77## Unreleased
88
9+ ## 3.0.2
10+
11+ * Unregister ServiceWorker
12+
913## 3.0.1
1014
1115* Change WorkboxPlugin option to delete outdated caches
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ let [<Global>] navigator: obj = jsNative
112112let [<Emit("$0 in $1")>] hasField ( key : string ) ( o : obj ): bool = jsNative
113113if hasField " serviceWorker" navigator then
114114 navigator?serviceWorker?register( " ./service-worker.js" )
115+ ?`` then `` ( fun registration -> registration?unregister())
115116#endif
116117
117118open Elmish.React
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ open Fable.Core
66
77[<RequireQualifiedAccess>]
88module Literals =
9- let [<Literal>] REPL_VERSION = " 3.0.1 " // Do not edit manually
9+ let [<Literal>] REPL_VERSION = " 3.0.2 " // Do not edit manually
1010 let [<Literal>] STORAGE_KEY = " fable-repl"
1111 let [<Literal>] MAX_LOGS_LENGTH = 200
1212 // let [<Literal>] HOST =
Original file line number Diff line number Diff line change @@ -131,17 +131,17 @@ module.exports = {
131131 patterns : [
132132 { from : CONFIG . assetsDir }
133133 ] } ) ,
134- new WorkboxPlugin . GenerateSW ( {
135- cleanupOutdatedCaches : true ,
136- // these options encourage the ServiceWorkers to get in there fast
137- // and not allow any straggling "old" SWs to hang around
138- clientsClaim : true ,
139- skipWaiting : true ,
140- // runtimeCaching: [{
141- // urlPattern: new RegExp('/api/.*'),
142- // handler: 'staleWhileRevalidate'
143- // }]
144- } ) ,
134+ // new WorkboxPlugin.GenerateSW({
135+ // cleanupOutdatedCaches: true,
136+ // // these options encourage the ServiceWorkers to get in there fast
137+ // // and not allow any straggling "old" SWs to hang around
138+ // clientsClaim: true,
139+ // skipWaiting: true,
140+ // // runtimeCaching: [{
141+ // // urlPattern: new RegExp('/api/.*'),
142+ // // handler: 'staleWhileRevalidate'
143+ // // }]
144+ // }),
145145 ] )
146146 : commonPlugins . concat ( [
147147 new webpack . HotModuleReplacementPlugin ( ) ,
You can’t perform that action at this time.
0 commit comments