UNPKG

lasso

Version:

Lasso.js is a build tool and runtime library for building and bundling all of the resources needed by a web application

44 lines (34 loc) 1.08 kB
var transport = require('lasso-modules-client/transport'); exports.create = function(config, lasso) { return { properties: {}, async init(lassoContext) {}, read: function(lassoContext) { var loaderMetadata = lassoContext && lassoContext.loaderMetadata; if (!loaderMetadata) { return null; } return transport.codeGenerators.loaderMetadata( loaderMetadata, lassoContext, { modulesRuntimeGlobal: config.modulesRuntimeGlobal }); }, getUnbundledTargetPrefix: function(lassoContext) { return config.unbundledTargetPrefix; }, getUnbundledTarget: function() { return 'lasso-modules-meta'; }, calculateKey () { return 'loader-metadata'; }, isPageBundleOnlyDependency: function() { return true; }, async getLastModified (lassoContext) { return -1; } }; };