| | |
| | | /** @typedef {import("./Module")} Module */ |
| | | |
| | | /** |
| | | * Defines the records chunks type used by this module. |
| | | * @typedef {object} RecordsChunks |
| | | * @property {Record<string, number>=} byName |
| | | * @property {Record<string, number>=} bySource |
| | |
| | | */ |
| | | |
| | | /** |
| | | * Defines the records modules type used by this module. |
| | | * @typedef {object} RecordsModules |
| | | * @property {Record<string, number>=} byIdentifier |
| | | * @property {number[]=} usedIds |
| | | */ |
| | | |
| | | /** |
| | | * Defines the records type used by this module. |
| | | * @typedef {object} Records |
| | | * @property {RecordsChunks=} chunks |
| | | * @property {RecordsModules=} modules |
| | | */ |
| | | |
| | | /** |
| | | * Defines the record ids plugin options type used by this module. |
| | | * @typedef {object} RecordIdsPluginOptions |
| | | * @property {boolean=} portableIds true, when ids need to be portable |
| | | */ |
| | |
| | | |
| | | class RecordIdsPlugin { |
| | | /** |
| | | * Creates an instance of RecordIdsPlugin. |
| | | * @param {RecordIdsPluginOptions=} options object |
| | | */ |
| | | constructor(options) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Applies the plugin by registering its hooks on the compiler. |
| | | * @param {Compiler} compiler the Compiler |
| | | * @returns {void} |
| | | */ |
| | |
| | | ); |
| | | |
| | | /** |
| | | * Gets module identifier. |
| | | * @param {Module} module the module |
| | | * @returns {string} the (portable) identifier |
| | | */ |
| | |
| | | /** @typedef {string[]} ChunkSources */ |
| | | |
| | | /** |
| | | * Gets chunk sources. |
| | | * @param {Chunk} chunk the chunk |
| | | * @returns {ChunkSources} sources of the chunk |
| | | */ |