feat: apply owner warning decisions and add editable annual planning example
This commit is contained in:
@@ -65,13 +65,19 @@ function editor(initialSnapshot) {
|
||||
}).outputText;
|
||||
compileFunction(code, ['require', 'module', 'exports'])(
|
||||
(name) =>
|
||||
({
|
||||
(name === '@/components/business-plan-warnings'
|
||||
? { BusinessPlanWarnings: () => null }
|
||||
: name === '@/components/simulation-annual-example'
|
||||
? { SimulationAnnualExample: () => null }
|
||||
: undefined) ??
|
||||
{
|
||||
react: hooks,
|
||||
'@/components/currency-select': { CurrencySelect: () => null },
|
||||
'@/lib/business-financial-plan': business,
|
||||
'@/lib/simulation-contract': contract,
|
||||
'@/lib/financial-fiscal-bridge': bridge,
|
||||
})[name] ?? require(name),
|
||||
}[name] ??
|
||||
require(name),
|
||||
module,
|
||||
module.exports,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user