Skip to content

Installing @rollup/plugin-node-resolve breaks ROLLUP_WATCH flow #6193

@vdenisenko-waverley

Description

@vdenisenko-waverley

I am using rollup for years, and it works just great until now I needed to install npm i @rollup/plugin-node-resolve -D.

Just installing the module even before referencing in code breaks the rollup watch flow process.env.ROLLUP_WATCH is now undefined. Please give me an idea how that could be?

// package.json
{
  "private": true,
  "scripts": {
    "watch": "rm -rf build/* && npm run watch:static & npm run watch:js",
    "build": "rm -rf build/* && npm run build:static && npm run build:js",
    "build:static": "ncp static/ build/",
    "watch:static": "watch 'npm run build:static' ./static",
    "build:js": "rollup -c rollup.config.js --",
    "watch:js": "rollup -c rollup.config.js -w --"
  },
  "devDependencies": {
    "@rollup/plugin-alias": "^3.1.1",
    "@rollup/plugin-commonjs": "^13.0.0",
    "@rollup/plugin-html": "^0.2.0",
    "@rollup/plugin-node-resolve": "^16.0.3",
    "@rollup/plugin-replace": "^2.3.3",
    "autoprefixer": "^9.8.0",
    "cssnano": "^4.1.10",
    "jws": "^4.0.0",
    "ncp": "^2.0.0",
    "postcss-color-function": "^4.1.0",
    "postcss-custom-properties": "^10.0.0",
    "postcss-image-inliner": "^3.0.9",
    "postcss-import": "^12.0.1",
    "postcss-mixins": "^6.2.3",
    "postcss-nested": "^4.2.1",
    "postcss-percentage": "0.0.0",
    "postcss-prefix-selector": "^1.16.0",
    "postcss-prefixer": "^2.1.3",
    "postcss-simple-vars": "^5.0.2",
    "rollup": "^2.16.1",
    "rollup-plugin-gzip": "^2.5.0",
    "rollup-plugin-postcss": "^3.1.2",
    "rollup-plugin-serve": "^1.0.1",
    "rollup-plugin-terser": "^6.1.0",
    "rollup-plugin-typescript2": "^0.27.1",
    "typescript": "^3.9.5",
    "watch": "^1.0.2"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions