gajus / gajus/babel-plugin-react-css-modules
how to use this plugin on babel with babel-env to make it work on ie11?
- Lingua principale
- JavaScript
- Stelle
- 2k
- Fork
- 159
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
how to use this plugin on babel with babel-env to make it work on ie11?
it fails on a `Object.assign` although i have `"transform-object-assign"` in babelrc:
```
{
"presets": ["react", ["env", {
"targets": {
"browsers": [
"last 4 chrome versions",
"last 4 safari versions",
"last 4 firefox versions",
"last 3 edge versions",
"last 2 ios versions",
"last 1 samsung versions",
"last 1 android versions",
"ie >= 11"
]
}
}]],
"plugins": [
"transform-object-rest-spread",
"transform-decorators-legacy",
"transform-class-properties",
"transform-export-extensions",
[
"react-css-modules",
{
"generateScopedName": "[path]_[name]_[local]_[hash:base64:5]",
"filetypes": {
".scss": {
"syntax": "postcss-scss"
}
},
"webpackHotModuleReloading": true
}
],
"transform-object-assign",
[
"transform-imports",
{
"lodash": {
"transform": "lodash/${member}",
"preventFullImport": true
},
"recompose": {
"transform": "recompose/${member}",
"preventFullImport": true
}
}
]
]
}
```
I tried moving "transform-object-assign" before and after the plugin but nothing works
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia con la configurazione .babelrc mostrata e riproduci il problema di IE11 con Object.assign utilizzando i Babel env targets elencati e il plugin transform-object-assign. Confronta l’ordine dei plugin e determina se questa configurazione di plugin può supportare IE11; il lavoro è completato quando viene documentata una configurazione o una limitazione confermata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, react
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100