MCPcopy Create free account
hub / github.com/chakra-ui/panda / emit

Method emit

packages/node/src/builder.ts:97–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 }
96
97 async emit() {
98 // ensure emit is only called when the config is changed
99 if (this.hasEmitted && this.affecteds?.hasConfigChanged) {
100 logger.debug('builder', 'Emit artifacts after config change')
101 await codegen(this.getContextOrThrow(), Array.from(this.affecteds.artifacts))
102 }
103
104 this.hasEmitted = true
105 }
106
107 setupContext = async (options: SetupContextOptions) => {
108 const { configPath, cwd } = options

Callers 2

postcssProcessFunction · 0.80

Calls 1

codegenFunction · 0.90

Tested by

no test coverage detected