-
-
Notifications
You must be signed in to change notification settings - Fork 781
Closed
Labels
featNew feature or requestNew feature or requestteamThe issue/pr is created by the member of Rspack.The issue/pr is created by the member of Rspack.
Description
What problem does this feature solve?
Webpack supports __webpack_layer__ and it will be replaced with the value of entry.layer. But now Rspack doesn't support it.
What does the proposed API of configuration look like?
// webpack.config.js
module.exports = {
entry: {
catalog: {
import: './catalog.js',
layer: 'main'
}
},
plugins: [
new rspack.DefinePlugin({
__RUNTIME_TYPE__: '__webpack_layer__'
})
]
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featNew feature or requestNew feature or requestteamThe issue/pr is created by the member of Rspack.The issue/pr is created by the member of Rspack.