Files
NapCatQQ/.pnpm-store/v3/files/64/303d501efab66b0be002ad3f9625fb70de47456ad45ad9aaa517bf3dbb1a5fe9b85ea306c080769bda03a54a46e42019bcc641d552581bebe3a4d5a4344b40
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

18 lines
466 B
Plaintext

"use strict"
module.exports = function (layer, node, state, options) {
layer.forEach((layerPart, i) => {
if (layerPart.trim() === "") {
if (options.nameLayer) {
layer[i] = options
.nameLayer(state.anonymousLayerCounter++, state.rootFilename)
.toString()
} else {
throw node.error(
`When using anonymous layers in @import you must also set the "nameLayer" plugin option`
)
}
}
})
}