Where exactly theme-editor.js file is being added through the Dawn Theme?

Topic summary

  • Main issue: Identifying where the theme-editor.js file is included/loaded within Shopify’s Dawn theme.
  • Context: The file exists in the assets folder and runs correctly in design mode (theme editor), but the specific location or mechanism that initially invokes/loads it in the theme files is unclear.
  • Requested help: Guidance on the exact file or inclusion point responsible for loading theme-editor.js.
  • Status: No solution or follow-up provided; the question remains open.
Summarized with AI on January 7. AI used: gpt-5.

We’re having difficulty pinpointing the exact location where the theme-editor.js file is being invoked in the Dawn Theme files. While the file exists in the assets folder and the script runs successfully in design mode, we’re uncertain about its initial file loading within the theme files.

Any assistance you could provide on this matter would be greatly appreciated guys. Thank you!