Does Rollup have a cacheGroups option like Webpack

Viewed 10

Coming from Webpack, I had the opportunity to group modules content in order to receive them as unique file by doing:

optimization: {
            splitChunks: {
                cacheGroups: {
                    my_module: {
                      test: 'node_modules/my_module,
                      name: 'my_module
                    }
                },
            }
}

Is there a way to do the same in Rollup?

0 Answers
Related