src/PugHandlerTrait.php
private function hasExpiredImport($path)
    {
        $compiled = $this->getCompiledPath($path);
        $importsMap = $compiled . '.imports.serialize.txt';
        $files = $this->files;

        if (!$files->exists($importsMap)) {
            return true;
        }

        $importPaths = unserialize($files->get($importsMap));
        $time = $files->lastModified($compiled);

        foreach ($importPaths as $importPath) {
            if (!$files->exists($importPath) || $files->lastModified($importPath) >= $time) {
                return true;
            }
        }

        return false;
    }
private function hasExpiredImport($path)
    {
        $compiled = $this->getCompiledPath($path);
        $importsMap = $compiled . '.imports.serialize.txt';
        $files = $this->files;

        if (!$files->exists($importsMap)) {
            return true;
        }

        $importPaths = unserialize($files->get($importsMap));
        $time = $files->lastModified($compiled);

        foreach ($importPaths as $importPath) {
            if (!$files->exists($importPath) || $files->lastModified($importPath) >= $time) {
                return true;
            }
        }

        return false;
    }
Returns true if the path has an expired imports linked.

@param $path

@return bool