Skip to content

rpg-next: split babel out into separate chunk #59

@chadfurman

Description

@chadfurman
module.exports = {
  webpack: (config, options) => {
    if (!options.isServer && !options.dev) {
      config.optimization.splitChunks.cacheGroups.babel = {
        chunks: 'all',
        name: 'babel',
        test: /[\\/]node_modules[\\/](@babel|regenerator-runtime)[\\/]/
      };
    }

    return config;
  }
);```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions