---
id: 6770
title: 'code.LivePreview: doRunSource() => smarter env handling'
state: CLOSED
labels:
  - enhancement
assignees:
  - tobiu
createdAt: '2025-06-11T13:07:57Z'
updatedAt: '2025-06-11T13:28:05Z'
githubUrl: 'https://github.com/neomjs/neo/issues/6770'
author: tobiu
commentsCount: 1
parentIssue: null
subIssues: []
subIssuesCompleted: 0
subIssuesTotal: 0
blockedBy: []
blocking: []
closedAt: '2025-06-11T13:27:20Z'
---
# code.LivePreview: doRunSource() => smarter env handling

* dev mode => load code based modules from dev mode
* dist/esm => load code based modules from dist/esm
* dist/development => load code based modules from dev mode
* dist/production => load code based modules from dist/esm

## Timeline

- 2025-06-11T13:07:57Z @tobiu assigned to @tobiu
- 2025-06-11T13:07:59Z @tobiu added the `enhancement` label
- 2025-06-11T13:26:39Z @tobiu referenced in commit `3987600` - "code.LivePreview: doRunSource() => smarter env handling #6770"
### @tobiu - 2025-06-11T13:27:20Z

<img width="1163" alt="Image" src="https://github.com/user-attachments/assets/b6dec710-7bd6-4929-9d01-0ea366089c92" />

<img width="1152" alt="Image" src="https://github.com/user-attachments/assets/bb85c4e4-7b20-418c-be64-3a2bf65397d7" />

<img width="1158" alt="Image" src="https://github.com/user-attachments/assets/f6b65a2b-c8d0-4148-8356-72bfc3d2e43a" />

<img width="1160" alt="Image" src="https://github.com/user-attachments/assets/9edcdf71-295b-4807-8185-fcf80f19fde8" />

- 2025-06-11T13:27:20Z @tobiu closed this issue

