 				e.message = "html import file in #{@JS.relPath} doesn't exist: #{importPath}"
 				console.error e.message.error
 				continue
-			htmlImport = { statement, variable, html }
+			htmlImport = { statement, path: importPath, variable, html }
 			htmlImports[importDistPath] = htmlImport
 		htmlImports
 

		@updateHtmlImportsMap htmlImports

		return @JS unless @JS.hasImports
		@htmlImportReplace()
		@templateVarReplace()

		HtmlImports[@JS.path].contents.compiled = @JS.contents
		@JS

	# Private Methods

					return console.error eMsg.error
				fse.outputFile jsPath, HtmlImports[jsPath].contents.uncompiled

	inlineImports: ->
		return unless !!HtmlImports[@JS.path]
		for htmlPath, htmlImport of HtmlImports[@JS.path].imports
			hasTemplateVar = false
			@JS.contents = @JS.contents.replace Regx.templateVar(htmlImport.variable), (match) ->
				hasTemplateVar = true
				"`#{htmlImport.html}`"
			if hasTemplateVar
				@JS.contents = @JS.contents.replace Regx.htmlImport(htmlImport.statement), ''
			else
				console.error "
					failed to inline js html import \"#{htmlImport.path}\"
					in file \"#{@JS.relPath}\",
					variable \"#{htmlImport.variable}\" unused
				".error

# GULP PLUGIN
# ===========
