Skip to content
New issue

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

cli ignore parts of config settings #1312

Open
1 of 12 tasks
rottmann opened this issue Dec 4, 2023 · 0 comments
Open
1 of 12 tasks

cli ignore parts of config settings #1312

rottmann opened this issue Dec 4, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@rottmann
Copy link

rottmann commented Dec 4, 2023

I am interested in helping provide a fix!

No

Which generators are impacted?

  • All
  • Angular
  • HTML
  • Preact
  • Qwik
  • React
  • React-Native
  • Solid
  • Stencil
  • Svelte
  • Vue
  • Web components

Reproduction case

https://mitosis.builder.io/?outputTab=G4VwpkA%3D

Expected Behaviour

Use config (and overwrite config file args with cli args).
It should output a single file as vue3 with composition api. The typescript option works.

Actual Behaviour

It loads the config, but ignores the composition settings.
mitosis build to build everything works.

Additional Information

config/mitosis.config.cjs

/** @type {import('@builder.io/mitosis').MitosisConfig} */
module.exports = {
  targets: ['vue3'],
  options: {
    vue3: {
      api: 'composition',
      typescript: true
    }
  }
}

Execute

mitosis compile \
  --config config/mitosis.config.cjs \
  --to vue3 \
  src/$src.lite.tsx > build/$src.vue
@rottmann rottmann added the bug Something isn't working label Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant