Skip to content

increate uniqueness of gen-id #645

Closed
@morficus

Description

@morficus

(related to #371)
Currently, gen-id runs the modules full file path through hash-sum to generate a unique value.

Using this method there is still a good possibility that the generated hash is not unique across different code bases (especially in instances where a CI tool is used to check different repos to the same target dir).

For this reason, I would like to propose that Date.now() + file path be used for generating the component hash.

  return cache[file] || (cache[file] = hash(file + Date.now()))

This would greatly increase the uniqueness of the generated module ID.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions