public override ModuleContainer Build() { var moduleBuilder = new UnresolvedScriptModuleBuilder(rootDirectory); var unresolvedModules = relativeModuleDirectories.Select(x => moduleBuilder.Build(x.Item1, x.Item2)); var modules = UnresolvedModule.ResolveAll(unresolvedModules); return new ModuleContainer( modules, storage, textWriter => new ScriptModuleWriter(textWriter, rootDirectory, LoadFile, coffeeScriptCompiler) ); }
public override ModuleContainer Build() { var moduleBuilder = new UnresolvedScriptModuleBuilder(rootDirectory); var unresolvedModules = relativeModuleDirectories.Select(x => moduleBuilder.Build(x.Item1, x.Item2)); var modules = UnresolvedModule.ResolveAll(unresolvedModules); return(new ModuleContainer( modules, storage, textWriter => new ScriptModuleWriter(textWriter, rootDirectory, LoadFile, coffeeScriptCompiler) )); }