JavaScript template library that doesn't use eval/new Function

前端 未结 10 1212
抹茶落季
抹茶落季 2021-02-05 17:52

Google Chrome extensions using manifest_version: 2 are restricted from using eval or new Function. All of the JavaScript templating librar

10条回答
  •  抹茶落季
    2021-02-05 18:25

    The answers here are outdated so I post an update.

    Since September, Google changed their policy and allowed unsafe-eval in manifest 2 extensions. See this thread and this page.

    So libraries using eval(), new Function() etc. can be used if unsafe-eval is turned on for your extensions.

提交回复
热议问题