options.import can be a function to be able to set @import statement according to a file path

I need to set different 'import' according to the file path, so I add support to let options.import be a function.