import { ThirdPartyUse } from '@reskript/settings' ; import { BabelConfigOptions , BabelConfigOptionsFilled } from './interface' ; const DEFAULT_OPTIONS = { uses : [ 'antd' , 'lodash' ] , mode : 'development' , hot : false , hostType : 'application' , polyfill : false , modules : false , displayName : 'auto' , cwd : process . cwd ( ) , srcDirectory : 'src' , openInEditorPrefix : '' , } ; export const fillBabelConfigOptions = ( options ? ) : BabelConfigOptionsFilled => { return { ... DEFAULT_OPTIONS , ... options } ; } ; export const shouldEnable = ( library , config ) => { return config . includes ( library ) ; } ;