Skip to content

Commit

Permalink
Add support for scoped plugin packages (#1112) (#1117)
Browse files Browse the repository at this point in the history
  • Loading branch information
smithki authored and devongovett committed Apr 4, 2018
1 parent 0140dce commit 9792f48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Bundler.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ class Bundler extends EventEmitter {
try {
let deps = Object.assign({}, pkg.dependencies, pkg.devDependencies);
for (let dep in deps) {
if (dep.startsWith('parcel-plugin-')) {
const pattern = /^(@.*\/)?parcel-plugin-.+/;
if (pattern.test(dep)) {
let plugin = await localRequire(dep, this.mainFile);
await plugin(this);
}
Expand Down

0 comments on commit 9792f48

Please sign in to comment.