ember-fastboot/ember-cli-fastboot

Update the docs on the third-party-dependencies section to describe dynamic import method

Open

#921 创建于 2023年6月7日

在 GitHub 查看
 (0 评论) (1 反应) (0 负责人)JavaScript (853 star) (163 fork)batch import
good first issue

描述

The docs for third party dependencies describes a rather old technique that involves automatically wrapping your vendor libs in a "fastboot guard". This method a) won't work for anything that is using ember-auto-import and b) won't work in a broccoli-free embroider build

We should update this section to describe the fact that you can use dynamic imports inline with your code that has a fastboot guard on it. This is idiomatic in terms of the wider JS community i.e. don't import things that you know won't work in your environment

贡献者指南

Update the docs on the third-party-dependencies section to describe dynamic import method · ember-fastboot/ember-cli-fastboot#921 | Good First Issue