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 ffdf338 commit 9eb01ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/parcel-bundler/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 9eb01ea

Please sign in to comment.