Make babylon ignore duplicate plugins.
This commit is contained in:
parent
9c75f27240
commit
d425927ff1
@ -41,10 +41,12 @@ export default class Parser extends Tokenizer {
|
||||
}
|
||||
|
||||
for (let name of plugins) {
|
||||
pluginMap[name] = true;
|
||||
if (!pluginMap[name]) {
|
||||
pluginMap[name] = true;
|
||||
|
||||
let plugin = exports.plugins[name];
|
||||
if (plugin) plugin(this);
|
||||
let plugin = exports.plugins[name];
|
||||
if (plugin) plugin(this);
|
||||
}
|
||||
}
|
||||
|
||||
return pluginMap;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user