translate

  • page
steal.hooks.translate  

A loader hook that converts a module's source, if needed. The most common usage of this hook is for transpiling a language down to JavaScript.

translate(load)

Parameters

  1. load {load}

    The load object associated with this module.

Returns

{Promise | String}

The translated source or a Promise that will resolve with the translated source.

Help us improve StealJS by taking our community survey