I am interested in helping provide a fix!
Yes
Which generators are impacted?
Reproduction case
N/A
Expected Behaviour
When writing a plugin to run against Lit components, the json and code callback functions don't run.
With the plugin:
/**
* @type {import('@builder.io/mitosis').MitosisConfig}
*/
module.exports = {
files: "src/**",
targets: ["lit"],
dest: "../",
commonOptions: {
typescript: true,
},
options: {
lit: {
plugins: [
() => ({
name: "hello-plugin",
order: 1,
build: {
pre: () => console.log("pre build"),
post: () => console.log("post build"),
},
json: {
pre: () => console.log("pre json"),
post: () => console.log("post json"),
},
code: {
pre: () => console.log("pre code"),
post: () => console.log("post post"),
},
}),
],
},
},
};
The CLI should print during the pre and post steps of the build, json, and code steps.
Actual Behaviour
Plugin callbacks with code and json steps do not run against lit components.
With the above example, the CLI prints:
pre build
Mitosis: lit: generated 1 components, 1 regular files.
post build
Mitosis: generation completed.
Additional Information
No response
I am interested in helping provide a fix!
Yes
Which generators are impacted?
Reproduction case
N/A
Expected Behaviour
When writing a plugin to run against Lit components, the
jsonandcodecallback functions don't run.With the plugin:
The CLI should print during the
preandpoststeps of the build, json, and code steps.Actual Behaviour
Plugin callbacks with
codeandjsonsteps do not run against lit components.With the above example, the CLI prints:
Additional Information
No response