-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate timer into shared service. #4961
Conversation
Reduces most extensions by about 1KB.
@@ -22,6 +22,8 @@ import {getMode} from '../../src/mode'; | |||
import {isExperimentOn, toggleExperiment} from '../../src/experiments'; | |||
import {listenOnce} from '../../src/event-helper'; | |||
import {onDocumentReady} from '../../src/document-ready'; | |||
//TODO(@cramforce): For type. Replace with forward declaration. | |||
import '../../src/service/timer-impl'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It makes the compiler happy, because the compilation unit references the type, but not its implementation.
I will soon implement a more general solution to this problem.
Want to work on |
@jridgewell Maybe when I'm bored. |
LGTM |
Reduces most extensions by about 1KB.
Reduces most extensions by about 1KB.
Reduces most extensions by about 1KB.