File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -45,27 +45,24 @@ class WebAssemblyParser extends Tapable {
4545 const exports = ( state . module . buildMeta . providedExports = [ ] ) ;
4646 t . traverse ( ast , {
4747 ModuleExport ( { node } ) {
48- const moduleExport = /** @type {t.ModuleExport } */ ( node ) ;
49- exports . push ( moduleExport . name ) ;
48+ exports . push ( node . name ) ;
5049 } ,
5150
5251 ModuleImport ( { node } ) {
53- const moduleImport = /** @type {t.ModuleImport } */ ( node ) ;
54-
5552 let onlyDirectImport = false ;
5653
57- if ( isMemoryImport ( moduleImport ) === true ) {
54+ if ( isMemoryImport ( node ) === true ) {
5855 onlyDirectImport = true ;
5956 }
6057
61- if ( isTableImport ( moduleImport ) === true ) {
58+ if ( isTableImport ( node ) === true ) {
6259 onlyDirectImport = true ;
6360 }
6461
6562 const dep = new WebAssemblyImportDependency (
66- moduleImport . module ,
67- moduleImport . name ,
68- moduleImport . descr ,
63+ node . module ,
64+ node . name ,
65+ node . descr ,
6966 onlyDirectImport
7067 ) ;
7168
You can’t perform that action at this time.
0 commit comments