moment/luxon

Luxon not working on StackBlitz

Open

#552 创建于 2019年8月9日

在 GitHub 查看
 (1 评论) (2 反应) (0 负责人)JavaScript (14,588 star) (759 fork)batch import
help wantedissue: install/load

描述

With the introduction of the specific CDN rules (https://github.com/moment/luxon/pull/468), luxon no longer can be imported in StackBlitz. There is an issue for this over at StackBlitz (https://github.com/stackblitz/core/issues/986), but as far as I can see, this should be resolved here.

The problem is that the build/global file does not export anything, it just defines a variable called luxon that goes nowhere. This is not preferable, since the only way to import this, is by copying the file into another file (or using webpack, where it will magically work since you are copying everything in the same file, as specified by the original issue https://github.com/moment/luxon/issues/443.

Seems to me that the solution in #468 did not fix the problem, it only shifted it.

Proposal: Reverting #468 and reopening #443, figuring out what needs to be done exactly to resolve it.

贡献者指南