This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support specifying plugins by path (#102)
This allows the expensive require()s to be skipped in cases where the plugin or webpack configuration won't end up being used. For example, using this feature in Neutrino reduces the overhead of dynamically generating `.eslintrc.js` from 1800ms to 250ms. As an added bonus, plugins specified by path will also have their `require()` statement generated automatically when using `toString()`, saving the need for callers to manually do so using `__expression`. The plugin path is passed back to `toString()` separately, since it needs stringifying to ensure special characters are escaped (such as the backslashes in Windows-style paths) - and I'd prefer to avoid importing `javascript-stringify` outside of `toString()`.
- Loading branch information
Showing
5 changed files
with
85 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters