Skip to content

affect the other modules when use yarn workspace #171

Open
@boswellgao

Description

@boswellgao

I have an npm package named webpack-holl that has the follow packages as dependencies:

    "html-webpack-plugin": "^4.5.2",
    "add-asset-html-webpack-plugin": "^2.1.3",
    "babel-eslint": "^7.2.3",
    "cache-loader": "^1.2.2",
    "case-sensitive-paths-webpack-plugin": "^2.1.2",
    "chalk": "^2.4.1",
    "eslint-loader": "^1.9.0",
    "postcss": "^8.2.6",
    "postcss-loader": "4.2.0",
    "postcss-css-variables": "0.17.0",
    "postcss-flexbugs-fixes": "^5.0.2",
    "autoprefixer": "^9.8.6",
    "antd-dayjs-webpack-plugin": "^1.0.0",
    "react-dev-utils": "^5.0.0",
    "style-loader": "^1.3.0",
    "thread-loader": "^1.2.0",
    "tslint-loader": "^3.5.3",
    "less": "^3.8.1",
    "less-loader": "^4.1.0",
    "node-sass": "^4.10.0",
    "sass-loader": "^7.1.0",
    "webpack": "4.26.0",
    "webpack-dev-server": "^3.1.4",
    "eslint-plugin-react": "^7.3.0",
    "fork-ts-checker-webpack-plugin": "^0.4.9",
    "friendly-errors-webpack-plugin": "^1.6.1",
    "mini-css-extract-plugin": "^0.4.0",
    "uglifyjs-webpack-plugin": "^1.3.0",
    "webpack-bundle-analyzer": "4.x.x",
    "webpackbar": "^2.6.1",
    "clean-webpack-plugin": "^1.0.0",
    "file-loader": "^2.0.0",
    "css-loader": "^5.2.6",
    "optimize-css-assets-webpack-plugin": "^5.0.0"

and this package source code like this https://github.com/boswellgao/webpack-holl

and I have a yarn workspaces project. the project like this:

https://github.com/boswellgao/demo-yarn-workspace

and I installed the package(webpack-holl) as devDepencies in the root of that project

after I have installed , I found that many of the dependencies of this package(webpack-holl) not in the root node_modules.

finally I found that when I removed the optimize-css-assets-webpack-plugin, all the works go well.

and I use

[email protected]
[email protected]
[email protected]

so I want to know if this is the problem of optimize-css-assets-webpack-plugin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions