They don't need it at all and this also allows use of `externalRuntime` without fear of the runtime ending up being loaded after it's used.
11 lines
331 B
JavaScript
11 lines
331 B
JavaScript
exports.optional = true;
|
|
|
|
// In theory, it would be more appropriate to do this in `manipulateOptions`,
|
|
// but we need an identifier for the import and we can't get that before the
|
|
// AST is built.
|
|
exports.ast = {
|
|
enter: function (ast, file) {
|
|
file.opts.runtime = file.addImport(file.opts.runtime, "to5Runtime").name;
|
|
}
|
|
};
|