Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only load plugins with @next prefix (#17945)
- Loading branch information
1 parent
cbbf9a7
commit dfcf267
Showing
9 changed files
with
2 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -182,11 +182,9 @@ async function _collectPlugins( | |
} | ||
|
||
// find packages with the naming convention | ||
// @scope/next-plugin-[name] | ||
// @next/plugin-[name] | ||
// next-plugin-[name] | ||
const filteredDeps = dependencies.filter((name) => { | ||
return name.match(/(^@next\/plugin|next-plugin-)/) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
timneutkens
Author
Member
|
||
return name.match(/^@next\/plugin/) | ||
}) | ||
|
||
if (nextPluginConfigNames) { | ||
|
11 changes: 0 additions & 11 deletions
11
test/integration/next-plugins/app/node_modules/@zeit/next-plugin-scope/package.json
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
test/integration/next-plugins/app/node_modules/@zeit/next-plugin-scope/src/on-init-client.js
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
test/integration/next-plugins/app/node_modules/next-plugin-normal/package.json
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...integration/next-plugins/app/node_modules/next-plugin-normal/src/dir-with-ext.js/index.js
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...integration/next-plugins/app/node_modules/next-plugin-normal/src/dir-without-ext/index.js
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
test/integration/next-plugins/app/node_modules/next-plugin-normal/src/on-init-client.js
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
{ | ||
"dependencies": { | ||
"@next/plugin-google-analytics": "latest", | ||
"@zeit/next-plugin-scope": "latest", | ||
"next-plugin-normal": "latest" | ||
"@next/plugin-google-analytics": "latest" | ||
} | ||
} |
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
@timneutkens Is this ever coming back for 3rd parties? (I know it has always been experimental...) We have found this feature incredible for reducing out internal boiler plate code with our own internal very simple plugins.