adopted-ember-addons / adopted-ember-addons/validated-changeset

Can't be used with dynamic imports due to process.env access

未关闭
#136 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
38
派生
27
PR 合并指标
30 天内没有已合并 PR

描述

I'm trying to use validated-changeset as a demo for some REPL stuff, but am running into `process is not defined` errors, which makes sense, considering I'm `await import`ing from a browser.

See https://cdn.jsdelivr.net/npm/validated-changeset/+esm

is there a browser build available?
I see there in main and module here: https://github.com/validated-changeset/validated-changeset/blob/main/package.json#L6
just looks like browser might be missing?

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start with package.json, especially the main and module fields, and reproduce the failure by dynamically importing the jsDelivr +esm URL in a browser. Determine how the package should expose a browser-compatible build; done means the same dynamic import works without a process-is-not-defined error.

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
build-system, frontend
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。