gajus / gajus/babel-plugin-react-css-modules
Example with typescript?
- 主要言語
- JavaScript
- スター
- 2k
- フォーク
- 159
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
1)Following the tutorial and modyfing .babelrc did not change 'stylename' to 'classname'.
webpack.js:
`const context = path.resolve(__dirname, '..');`
.babelrc
```
["react-css-modules", {
"webpackHotModuleReloading": true,
"context": ".."
}],
```
2)I tried config from demo example :
```
{
test: /\.tsx?$/,
loader: 'ts-loader',
query: {
plugins: [
'@babel/transform-react-jsx',
[
'react-css-modules',
{
context
}
]
]
}
}
```
but it won't work with ts-loader
`Error: ts-loader was supplied with an unexpected loader option: plugins`
Can you please provide example how to use it with ts?
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず webpack.js、.babelrc、デモの設定を確認し、その後 issue に記載された ts-loader のエラーを再現してください。plugin でサポートされる TypeScript のセットアップを、関連する設定と、styleName から className への想定される変換を含めて文書化してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- babel, javascript, typescript
- 領域
- documentation
- issue の種類
- ドキュメント
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100