Skip to content

Commit 208fbbb

Browse files
authored
Merge pull request #376 from formidablejs/fix/resource-imba-serve
feat: use --esm flag
2 parents 6ce674e + bc1ab39 commit 208fbbb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Foundation/Console.imba

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export default class Console
159159

160160
const srv = './node_modules/@formidablejs/framework/bin/imba/server.imba'
161161

162-
const instance = spawn(runtime, [srv, '-s', '-w'], {
162+
const instance = spawn(runtime, [srv, '-s', '-w', '--esm'], {
163163
stdio: 'pipe',
164164
cwd: process.cwd!,
165165
env: {

src/Foundation/Console/Commands/ServeCommand.imba

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export class ServeCommand < Command
109109
get commandList
110110
const list\array = self.devCommands
111111

112-
list.push("{runtime} server{ext} -f -s -v")
112+
list.push("{runtime} server{ext} -f -s -v --esm")
113113

114114
list.join(' && ')
115115

0 commit comments

Comments
 (0)