Skip to content

nicolo-ribaudo/rollup-2.55-bug-semver-7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions

  1. Install dependencies:

    npm ci
    
  2. Test with Node.js, without bundling:

    node input.mjs
    

    It should log true.

  3. Bundle and run (using rollup@2.54, @rollup/plugin-commonjs@18):

    ./node_modules/.bin/rollup -c rollup.config.js
    node output/index.js
    

    It logs true (it works!).

Next steps if you are coming from rollup/rollup#4195:

  1. Update Rollup to 2.55:

    npm i rollup@~2.55.0
    
  2. Bundle and run (using rollup@2.55, @rollup/plugin-commonjs@18):

    ./node_modules/.bin/rollup -c rollup.config.js
    node output/index.js
    

    It throws

    const {ANY: ANY$1} = require$$26;
             ^
    
    TypeError: Cannot destructure property 'ANY' of 'require$$26' as it is undefined.
    

NOTE: When also updating to @rollup/plugin-commonjs@19, it exposes a @rollup/plugin-commonjs regression but it stops throwing.

Next steps if you are coming from rollup/plugins#962:

  1. Update to @rollup/plugin-commonjs@19:

    npm i -D @rollup/plugin-commonjs@19
    
  2. Bundle and run (using rollup@2.54, @rollup/plugin-commonjs@19):

    ./node_modules/.bin/rollup -c rollup.config.js
    node output/index.js
    

    It logs false instead of true

NOTE: When using rollup@2.55 and @rollup/plugin-commonjs@19 it has the same wrong behavior.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages