jrburke/requirejs — Issue #195: only load plugin if module ID wasn't defined before
Author: millermedeiros
Created: 2012-02-26 22:46:20+00:00
State: open

there is no need to load a plugin if the module was already inlined during build, shouldn't it check if the whole ID was registered before trying to load the plugin?

```js
requirejs.s.contexts._.defined["text!foo/bar.txt"]; // "lorem ipsum"
```

why do we need the `text!` plugin since it was already defined?

That way we could use `excludeShallow` to remove plugins and wouldn't need all the pragmas to remove plugin contents (like `cs!`, `mdown!`, `hbs!` plugins do).

I only realized that this behavior existed today... issue jrburke/r.js#116 is also related.