RequireJS allows you to write loader plugins that can load different types of resources as dependencies, and even include the dependencies in optimized builds.
For info about how to use and/or write plugins, check the documentation.
text!by default), applies some procedure/transformation to file's content and returns result of transformation.
text!plugin, parses and processes dependency directives in the file content, removes/replaces them in the content and loads the specified dependencies before returning result. The "refined" file content will be returned as resource value.
Last edited by Gabriel Reitz Giannattasio,