BeyondCodeBootcamp / BeyondCodeBootcamp/jswt

update export example

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

描述

In order to provide perfect compatibility with `require` the export needs to be done in both styles:

```js
let BuildClassifier = {};

BuildClassifier.answer = 42;

export let answer = BuildClassifier.answer;
export default BuildClassifier;
```

贡献指南

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

调研方向

查找 issue #35 引用的导出示例,并检查该包目前如何公开其值。更新示例,以展示适用于 require 兼容性的命名导出和默认导出两种风格,然后验证文档中的示例是否符合预期的 JavaScript 用法。

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

评估

技术栈
javascript
领域
tooling
Issue 类型
功能
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
50/100

把新 issue 发到你的邮箱

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