seajs/seajs — Issue #154: Problem with plugin-base
Author: piranha
Created: 2012-02-02 13:47:38+00:00
State: open

[Here](https://github.com/seajs/seajs/blob/master/src/plugins/plugin-base.js#L53) you can see this line:

~meta[type].ext.join('|').indexOf(ext)) {

In this case if you require something like `mod.js?md5sum` and you have plugin-json enabled, it will call this plugin to process required file. This happens because array of extensions is joined in a single string `.json`, which is checked for the extension of required module - `.js`. Removing `.join('|')` fixes this problem.