Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple outputs broken by 6.0.6 #314

Open
daveisfera opened this issue Dec 3, 2020 · 3 comments
Open

Multiple outputs broken by 6.0.6 #314

daveisfera opened this issue Dec 3, 2020 · 3 comments
Labels

Comments

@daveisfera
Copy link

daveisfera commented Dec 3, 2020

Describe the bug
We use webpack to generate multiple outputs and it works with 6.0 but with 6.1 it only outputs the second group of values and not both the first and second group like it did before.

To Reproduce
It's happening in proprietary code, but still working on a minimal reproducer

Expected behavior
But groups of outputs would still happen with 6.0.6 like it did with 6.0.5

Webpack Config
It's happening in proprietary code, but still working on a minimal reproducer

Desktop (please complete the following information):

  • OS: macOS 11.0.1
  • Node version: 12.20.0
  • Plugin version: 6.0.6
@daveisfera
Copy link
Author

daveisfera commented Dec 3, 2020

The break was actually caused by 6.0.6 (I updated the title and original description to reflect that)

@daveisfera daveisfera changed the title Multiple outputs broken by 6.1.0 Multiple outputs broken by 6.0.6 Dec 3, 2020
@ztoben ztoben added the bug label Dec 3, 2020
@ztoben
Copy link
Owner

ztoben commented Dec 4, 2020

@daveisfera if you can get me a reproduction it'd be appreciated. I think I have an idea of what the problem might be, but it would really help me narrow it down for sure.

@daveisfera
Copy link
Author

{
    "/public/js/": {
        "cache": {
            "type": "filesystem"
        },
        "module": {
            "rules": [
                {
                    "test": {},
                    "resolve": {
                        "fullySpecified": false
                    }
                },
                {
                    "test": {},
                    "exclude": [
                        {}
                    ],
                    "use": [
                        {
                            "loader": "babel-loader",
                            "options": {
                                "plugins": [
                                    "@babel/plugin-proposal-class-properties"
                                ],
                                "presets": [
                                    [
                                        "@babel/preset-env",
                                        {
                                            "corejs": 3,
                                            "modules": "cjs",
                                            "targets": {
                                                "chrome": 72,
                                                "edge": 17,
                                                "firefox": 60,
                                                "safari": 13
                                            },
                                            "useBuiltIns": "usage"
                                        }
                                    ],
                                    [
                                        "@babel/preset-react",
                                        {
                                            "runtime": "automatic"
                                        }
                                    ]
                                ]
                            }
                        }
                    ]
                },
                {
                    "test": {},
                    "use": [
                        {
                            "loader": "style-loader"
                        },
                        {
                            "loader": "css-loader"
                        },
                        {
                            "loader": "less-loader"
                        }
                    ]
                },
                {
                    "test": {},
                    "use": [
                        {
                            "loader": "style-loader"
                        },
                        {
                            "loader": "css-loader"
                        }
                    ]
                },
                {
                    "test": {},
                    "use": [
                        {
                            "loader": "file-loader"
                        }
                    ]
                }
            ]
        },
        "resolve": {
            "extensions": [
                ".js",
                ".jsx",
                ".json"
            ]
        },
        "mode": "development",
        "optimization": {
            "minimize": false,
            "chunkIds": "named",
            "runtimeChunk": "single",
            "splitChunks": {
                "chunks": "all",
                "maxInitialRequests": 30,
                "maxAsyncRequests": 30
            }
        },
        "parallelism": 4,
        "plugins": [
            {
                "profile": false,
                "modulesCount": 5000,
                "dependenciesCount": 10000,
                "showEntries": true,
                "showModules": true,
                "showDependencies": true,
                "showActiveModules": false
            },
            {
                "dangerouslyAllowCleanPatternsOutsideProject": false,
                "dry": false,
                "verbose": false,
                "cleanStaleWebpackAssets": true,
                "protectWebpackAssets": true,
                "cleanAfterEveryBuildPatterns": [],
                "cleanOnceBeforeBuildPatterns": [
                    "**/*"
                ],
                "currentAssets": [],
                "initialClean": false,
                "outputPath": ""
            },
            {
                "options": {
                    "filename": "views/assets/webpack-assets.json",
                    "prettyPrint": true,
                    "update": false,
                    "fullPath": true,
                    "manifestFirst": true,
                    "useCompilerPath": false,
                    "fileTypes": [
                        "js",
                        "css"
                    ],
                    "includeAllFileTypes": true,
                    "includeFilesWithoutChunk": false,
                    "includeAuxiliaryAssets": false,
                    "keepInMemory": false,
                    "integrity": false,
                    "removeFullPathAutoPrefix": false,
                    "entrypoints": true
                }
            }
        ],
        "devtool": "source-map",
        "target": "web",
        "watch": true,
        "entry": {
            "join": "./src/apps/join.js",
            "signin": "./src/apps/signin.js",
            "reset-password": "./src/apps/reset-password.js"
        },
        "output": {
            "path": "/Users/dlj/projects/myapp/web/public/js/",
            "publicPath": "/js/",
            "filename": "[name].[contenthash].js"
        }
    },
    "/public/apps/": {
        "cache": {
            "type": "filesystem"
        },
        "module": {
            "rules": [
                {
                    "test": {},
                    "resolve": {
                        "fullySpecified": false
                    }
                },
                {
                    "test": {},
                    "exclude": [
                        {}
                    ],
                    "use": [
                        {
                            "loader": "babel-loader",
                            "options": {
                                "plugins": [
                                    "@babel/plugin-proposal-class-properties"
                                ],
                                "presets": [
                                    [
                                        "@babel/preset-env",
                                        {
                                            "corejs": 3,
                                            "modules": "cjs",
                                            "targets": {
                                                "chrome": 72,
                                                "edge": 17,
                                                "firefox": 60,
                                                "safari": 13
                                            },
                                            "useBuiltIns": "usage"
                                        }
                                    ],
                                    [
                                        "@babel/preset-react",
                                        {
                                            "runtime": "automatic"
                                        }
                                    ]
                                ]
                            }
                        }
                    ]
                },
                {
                    "test": {},
                    "use": [
                        {
                            "loader": "style-loader"
                        },
                        {
                            "loader": "css-loader"
                        },
                        {
                            "loader": "less-loader"
                        }
                    ]
                },
                {
                    "test": {},
                    "use": [
                        {
                            "loader": "style-loader"
                        },
                        {
                            "loader": "css-loader"
                        }
                    ]
                },
                {
                    "test": {},
                    "use": [
                        {
                            "loader": "file-loader"
                        }
                    ]
                }
            ]
        },
        "resolve": {
            "extensions": [
                ".js",
                ".jsx",
                ".json"
            ]
        },
        "mode": "development",
        "optimization": {
            "minimize": false,
            "chunkIds": "named",
            "runtimeChunk": "single",
            "splitChunks": {
                "chunks": "all",
                "maxInitialRequests": 30,
                "maxAsyncRequests": 30
            }
        },
        "parallelism": 4,
        "plugins": [
            {
                "profile": false,
                "modulesCount": 5000,
                "dependenciesCount": 10000,
                "showEntries": true,
                "showModules": true,
                "showDependencies": true,
                "showActiveModules": false
            },
            {
                "dangerouslyAllowCleanPatternsOutsideProject": false,
                "dry": false,
                "verbose": false,
                "cleanStaleWebpackAssets": true,
                "protectWebpackAssets": true,
                "cleanAfterEveryBuildPatterns": [],
                "cleanOnceBeforeBuildPatterns": [
                    "**/*"
                ],
                "currentAssets": [],
                "initialClean": false,
                "outputPath": ""
            },
            {
                "options": {
                    "filename": "views/assets/webpack-assets.json",
                    "prettyPrint": true,
                    "update": false,
                    "fullPath": true,
                    "manifestFirst": true,
                    "useCompilerPath": false,
                    "fileTypes": [
                        "js",
                        "css"
                    ],
                    "includeAllFileTypes": true,
                    "includeFilesWithoutChunk": false,
                    "includeAuxiliaryAssets": false,
                    "keepInMemory": false,
                    "integrity": false,
                    "removeFullPathAutoPrefix": false,
                    "entrypoints": true
                }
            }
        ],
        "devtool": "source-map",
        "target": "web",
        "watch": true,
        "entry": {
            "queues": "./src/apps/queues/app.jsx",
            "sources": "./src/apps/sources/app.jsx",
            "settings": "./src/apps/settings/app.jsx"
        },
        "output": {
            "path": "/Users/dlj/projects/myapp/web/public/apps/",
            "publicPath": "/apps/",
            "filename": "[name].[contenthash].js"
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants