You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the documentation and #2394, this.meta should be available in all plugin hooks. This does not seem to be the case for options however.
Rollup Version: >=0.65, 1.0
Operating System (or Browser): MacOS Mohave 10.14.2
Node Version: 9.3 & 10.3
How Do We Reproduce?
// Save this as test.config.jsexportdefault{input: "test.config.js",output: {file: "build.js",format: "cjs"},plugins: [{resolveId(){console.log("ResolveId:",this.meta);},buildStart(){console.log("BuildStart:",this.meta);},options(){console.log("Options:",this.meta);}}]};
According to the documentation and #2394, this.meta should be available in all plugin hooks. This does not seem to be the case for
options
however.How Do We Reproduce?
Run with
npx rollup -c test.config.js
Output:
Expected Behavior
The option hook should have access to the
this.meta
object and output the proper rollup version.Actual Behavior
The option hook doesn't seem to have the proper context and thus
this.meta
is unavailable.The text was updated successfully, but these errors were encountered: