google / google/closure-compiler

How to tell closure compiler that a web worker is usded in a project

Open
#4,016 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.7k
Forks
1.2k
Avg merge
2d 12h
Merged PRs (30d)
6

Description

I have a chrome extension project which has two folders, one is `content-script` which use `dom`
the other one is `background` which uses `service worker`
I would like to tell closure compiler which library/environment is used in each so that it give errors/warnings if I missused one of them

For example using `window` object or `document.createElement` in service woker should show an error

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.