Skip to content

Commit

Permalink
fix: declare webworker lib for sw.ts with TS triple-slash directive
Browse files Browse the repository at this point in the history
Revert adding lib section to tsconfig.json to avoid needing a manual upgrade step in projects.

Fixes #9144
  • Loading branch information
Haprog committed Oct 9, 2020
1 parent 193bd1f commit fefc782
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
6 changes: 0 additions & 6 deletions flow-client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
"inlineSources": true,
"module": "esNext",
"target": "es2015",
"lib": [
"es2015",
"dom",
"dom.iterable",
"webworker"
],
"moduleResolution": "node",
"strict": true,
"noFallthroughCasesInSwitch": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@
"inlineSources": true,
"module": "esNext",
"target": "es2017",
"lib": [
"es2017",
"dom",
"dom.iterable",
"webworker"
],
"moduleResolution": "node",
"strict": true,
"noFallthroughCasesInSwitch": true,
Expand Down
2 changes: 2 additions & 0 deletions flow-server/src/main/resources/sw.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// <reference lib="webworker" />

importScripts('sw-runtime-resources-precache.js');
import {skipWaiting, clientsClaim} from 'workbox-core';
import {precacheAndRoute} from 'workbox-precaching';
Expand Down
6 changes: 0 additions & 6 deletions flow-server/src/main/resources/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
"inlineSources": true,
"module": "esNext",
"target": "es2017",
"lib": [
"es2017",
"dom",
"dom.iterable",
"webworker"
],
"moduleResolution": "node",
"strict": true,
"noFallthroughCasesInSwitch": true,
Expand Down

0 comments on commit fefc782

Please sign in to comment.