We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yes
https://mitosis.builder.io/playground/
it should be:
const defaultProps: IconProps = { size: "s" };
icon.lite.tsx
useMetadata({ importCSS: "./icon.css", isAttachedToShadowDom: true, angular: { selector: "ui-icon" }, }); useDefaultProps<IconProps>({ size: "s", }); export default function Icon(props: IconProps) { return ( <span class={cls("mt-icon", "icon-" + props.name, { "mt-icon--size-s": props.size === "s", "mt-icon--size-m": props.size === "m", "mt-icon--size-l": props.size === "l", })} ></span> ); }
In angular output there is an issue in default props types that are not bind correctly that results to types issue on props
mitosis.config.cjs
const injectCssPlugin = require("./plugins/inject-css.cjs"); const copyAssetsPlugin = require("./plugins/copy-assets.cjs"); const getTargetPath = ({ target }) => { return `../packages/${target}`; }; const getTargetAssetsPath = ({ target }) => { return getTargetPath({ target }) + "/assets"; }; /** * @type {import('@builder.io/mitosis').MitosisConfig} */ module.exports = { files: "src/**", exclude: ["src/assets"], targets: ["react", "angular", "vue"], dest: "../packages", getTargetPath, commonOptions: { typescript: true, plugins: [injectCssPlugin("src/components")], }, options: { react: { stylesType: "style-tag", plugins: [ copyAssetsPlugin({ source: "./src/assets", destination: getTargetAssetsPath({ target: "react" }), }), ], }, angular: { standalone: true, preserveImports: true, plugins: [ copyAssetsPlugin({ source: "./src/assets", destination: getTargetAssetsPath({ target: "angular" }), }), ], }, vue: { api: "composition", plugins: [ copyAssetsPlugin({ source: "./src/assets", destination: getTargetAssetsPath({ target: "vue" }), }), ], }, }, };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am interested in helping provide a fix!
Yes
Which generators are impacted?
Reproduction case
https://mitosis.builder.io/playground/
Expected Behaviour
it should be:
icon.lite.tsx
Actual Behaviour
Additional Information
In angular output there is an issue in default props types that are not bind correctly that results to types issue on props
mitosis.config.cjs
The text was updated successfully, but these errors were encountered: