Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support reading generator options from `mitosis.config.js` in `mitosis compile`

See original GitHub issue

github_iconTop GitHub Comments

sahilmobcommented, Apr 3, 2022

To my understanding, this sounds like reading generator options from mitosis.config.js and then overriding generatorOpts (if they do exist). Am I right?

const mitosisConfig = getMitosisConfig();
const generatorOptions = mitosisConfig.options?.[to];

const generatorOpts: Partial<{ [K in AllGeneratorOptionKeys]: any }> = {
  prettier: opts.prettier ?? true,
  plugins: plugins,
  format: opts.format,
  prefix: opts.prefix,
  includeIds: opts.includeIds,
  stylesType: opts.styles,
  stateType: opts.state,
  type: opts.type,
  cssNamespace: opts.cssNamespace,
alujscommented, Mar 17, 2022

Putting a temporary hold on this, I’ll pick it back up if it still hasn’t been taken.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Quick Guide to Mitosis: Why You Need It and How You Can ...
Mitosis is a compile-time framework that allows you to write components in JSX and compile to vanilla JavaScript, Angular, React, ...
Read more >
Mitosis - Best of JS
Mitosis. Write components once, run everywhere. Compiles to Vue, React, Solid, ... Check our configuration docs for how to setup the Mitosis config...
Read more >
Qwik, a new framework from the authors of angular.js and Ionic
You could already read about the Mitosis universal component compiler in one of the previous editions of our report (unfortunately only in ...
Read more >
Guides:Getting Started - SolidJS · Reactive Javascript Library
Then add babel-preset-solid to your .babelrc , or to your Babel config in ... on what principles and values help us best build...
Read more >
Intro to Mitosis: The universal reactive transformer - InfoWorld
Mitosis.js is a compiler tool that consumes a universal component syntax and outputs framework-specific code.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found