react-cosmos
react-cosmos copied to clipboard
Deprecation warning
What's wrong?
When I start cosmos I get the following warning:
(node:81830) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
: Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
: Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
(Use `node --trace-deprecation ...` to show where the warning was created)
Steps to reproduce
Init cosmos with custom babelrc config
{
"presets": [
"@babel/env",
"@babel/preset-typescript",
["@babel/preset-react", {
"runtime": "automatic"
}]
]
}
Screenshots
User info
- Cosmos version
5.6.6
- Cosmos config
{
"$schema": "http://json.schemastore.org/cosmos-config",
"port": 6006
}