23
23
from common import read_file , EMRUN , no_wasm64 , no_2gb , no_4gb , copytree
24
24
from common import requires_wasm2js , parameterize , find_browser_test_file , with_all_sjlj
25
25
from common import also_with_minimal_runtime , also_with_wasm2js , also_with_asan , also_with_wasmfs
26
- from common import HttpServerThread
26
+ from common import HttpServerThread , requires_dev_dependency
27
27
from tools import shared
28
28
from tools import ports
29
29
from tools .shared import EMCC , WINDOWS , FILE_PACKAGER , PIPE , DEBUG
@@ -5503,6 +5503,7 @@ def test_error_reporting(self):
5503
5503
'' : ([],),
5504
5504
'es6' : (['-sEXPORT_ES6' , '-pthread' , '-sPTHREAD_POOL_SIZE=1' ],),
5505
5505
})
5506
+ @requires_dev_dependency ('webpack' )
5506
5507
def test_webpack (self , args ):
5507
5508
if '-sEXPORT_ES6' in args :
5508
5509
copytree (test_file ('webpack_es6' ), '.' )
@@ -5519,13 +5520,15 @@ def test_webpack(self, args):
5519
5520
self .run_browser ('dist/index.html' , '/report_result?exit:0' )
5520
5521
5521
5522
@also_with_threads
5523
+ @requires_dev_dependency ('vite' )
5522
5524
def test_vite (self ):
5523
5525
copytree (test_file ('vite' ), '.' )
5524
5526
self .compile_btest ('hello_world.c' , ['-sEXIT_RUNTIME' , '-sENVIRONMENT=web' , '-o' , 'hello.mjs' ])
5525
5527
self .run_process (shared .get_npm_cmd ('vite' ) + ['build' ])
5526
5528
self .run_browser ('dist/index.html' , '/report_result?exit:0' )
5527
5529
5528
5530
@also_with_threads
5531
+ @requires_dev_dependency ('rollup' )
5529
5532
def test_rollup (self ):
5530
5533
copytree (test_file ('rollup' ), '.' )
5531
5534
self .compile_btest ('hello_world.c' , ['-sEXIT_RUNTIME' , '-sENVIRONMENT=web' , '-o' , 'hello.mjs' ])
0 commit comments