import { baseGenerator, Generator } from '../baseGenerator';

const generator: Generator = async (packageManager, npmOptions, options) => {
  baseGenerator(packageManager, npmOptions, options, 'preact');
};

export default generator;

import { baseGenerator, Generator } from '../baseGenerator';

const generator: Generator = async (packageManager, npmOptions, options) => {
  baseGenerator(packageManager, npmOptions, options, 'preact', {
    extraPackages: ['core-js'],
  });
};

export default generator;

Add core-js to the generator for preact
Add core-js to the generator for preact
