ext

  • property
config.ext {Object<String,moduleName>}  

Configures plugin loading by module extension.

Object<String,moduleName>

Specifies a plugin to add when an extension is matched in a module name.

Use

The following:

steal.config({
    ext: {
        txt: 'text-plugin'
    }
})

allows:

steal.import("foo.txt")

Without having to write:

steal.import("foo.txt!text-plugin");
Help us improve StealJS by taking our community survey