and you can your setup.ts write to a file in fileadmin like: mysetup.ts then in the backend delete your ts and link to your mysetup.ts file like: <INCLUDE_TYPOSCRIPT: source="FILE: fileadmin/template/TypoScript/RootTemplate/Template.ts">