Skip to content

[Bug]: lynx.loadLazyBundle is not a function #1954

@HuJean

Description

@HuJean

System Info

None

Details

Dynamic import script and not use lazy. This would lead to an error because lynx.loadLazyBundle is not defined.

Reproduce link

No response

Reproduce Steps

export function App() {
  const handleTap = ()=>{
    import("./test").then((res)=>{
      console.log('dynamic import', res)
    })
  }
  return (
    <view bindtap={handleTap}>...</view>
  )
}

Metadata

Metadata

Assignees

Labels

pending triageThe issue/PR is currently untouched.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions