Open luhc228 opened 3 weeks ago
Webpack supports __webpack_layer__ and it will be replaced with the value of entry.layer. But now Rspack doesn't support it.
__webpack_layer__
entry.layer
// webpack.config.js module.exports = { entry: { catalog: { import: './catalog.js', layer: 'main' } }, plugins: [ new rspack.DefinePlugin({ __RUNTIME_TYPE__: '__webpack_layer__' }) ] }
@h-a-n-a Can you evaluate whether this feature can be supported?
What problem does this feature solve?
Webpack supports
__webpack_layer__
and it will be replaced with the value ofentry.layer
. But now Rspack doesn't support it.What does the proposed API of configuration look like?