Files
agency/.pnpm-store/v3/files/64/303d501efab66b0be002ad3f9625fb70de47456ad45ad9aaa517bf3dbb1a5fe9b85ea306c080769bda03a54a46e42019bcc641d552581bebe3a4d5a4344b40
hanzo-agent 5af6960b87 run project
Run: sess_f37640604ae254cb4d11dc6217f7b721
2026-09-30 00:04:56 +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`
)
}
}
})
}