-
Notifications
You must be signed in to change notification settings - Fork 124
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 Plugin and PluginManager to TypeScript #2133
Conversation
4fccf71
to
7bf4758
Compare
@@ -55,8 +73,6 @@ class PluginManager { | |||
* Load all plugins of the site | |||
*/ | |||
_collectPlugins() { | |||
module.paths.push(path.join(this.config.rootPath, 'node_modules')); |
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.
Removed this line because the module
object is not compatible with ES6 imports. This is manually implemented below around line 146.
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.
Thanks for the PR, the TS migration is going at a good pace! I have added a few comments.
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.
LGTM
1822dfa
to
1ce0924
Compare
What is the purpose of this pull request?
Part of #1913
Overview of changes:
Migrate Plugin and PluginManager to TypeScript
Also removes
plugins/types.ts
and moves the types toPlugin.js
Proposed commit message: (wrap lines at 72 characters)
(rebase commit)
Checklist: ☑️