function resolveImportMetaProperty (plugins, moduleId, metaName, chunk, bundleReferenceIdMap) {
    if (metaName) {
        for (let i = 0; i < FILE_PROPS.length; i++) {
            if (metaName.startsWith(FILE_PROPS[i])) {
                let id = metaName.replace(FILE_PROPS[i], '');
                let entry = bundleReferenceIdMap[id];
                let replacement = plugins.hooks.resolveFileUrl(
                    metaName,
                    id,
                    entry.fileName,
                    chunk.fileName,
                    moduleId
                );

                return replacement || '"' + entry.fileName + '"';
            }
        }
    }

    let replacement = plugins.hooks.resolveImportMeta(metaName, chunk.fileName, moduleId);
    if (replacement) {
        return replacement;
    }

    return 'import.meta.' + metaName;
}
@param {PluginContainer} plugins 
@param {string} moduleId
@param {string} metaName 
@param {RollupOutputChunk} chunk 
@param {Object<string, RollupOutputFile>} bundleReferenceIdMap 
@return {string}