airbnb/goji-js

Cannot use <include> in <template> on Alipay

malash opened this issue · 4 comments

Description

When lib v2 being enabled, <include> in <template> cause compilation error on Alipay dev tool.

image

Reproduct link

lib2-issue.zip

Reproduct steps

  1. Unzip the file
  2. Open in Alipay dev tool 2.7.2

Impact

GojiJS use this feature to import leaf-components in components and fails to run on latest Alipay.

Temporary solution

Replace <include> with src's content.

Platforms

  • WeChat
  • Baidu ( including Xiaohongshu )
  • QQ
  • Alipay
  • Toutiao
  • KuaiApp

Reopen because leaf-components still not work with lib v2.

@malash is this open?
i can try fixing

@malash can you explain what is needed to be done.
do we have to change the include and use src attribute to include this file?