persona-community-5/.pnpm-store/v3/files/64/303d501efab66b0be002ad3f9625fb70de47456ad45ad9aaa517bf3dbb1a5fe9b85ea306c080769bda03a54a46e42019bcc641d552581bebe3a4d5a4344b40
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00: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`
)
}
}
})
}