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
var a = 'a';
var ab = /*#__PURE__*/Object.freeze({
__proto__: null,
a: a,
b: b
});
var b = ['b', a];
console.log({ ...ab });
var preset = 'wow';
console.log(preset);
However var b = ['b', a]; should come before var ab = ...
It is result from
// package/b/b.js (generated by rollup with no tree-shaking)
import a from '../a/a.js';
import '../ab.js'; // <------------ The import stmt cause the problem
var b = ['b', a];
export default b;
The text was updated successfully, but these errors were encountered:
07akioni
changed the title
Redundant import generated by rollConfig.treeshake = false may create unusable output (for rollup itself).
imports generated by rollConfig.treeshake = false may create unusable output (for rollup itself).
Dec 5, 2020
07akioni
changed the title
imports generated by rollConfig.treeshake = false may create unusable output (for rollup itself).
imports generated by rollupConfig.treeshake = false may create unusable output (for rollup itself).
Dec 6, 2020
https://repl.it/join/wpkwnjbg-07akioni
https://github.com/07akioni/rollup-bug
Expected Behavior
it outputs
{ a: 'a', b: [ 'b', 'a' ] }
Actual Behavior
it outputs
# { a: 'a', b: undefined }
The bundled app is
However
var b = ['b', a];
should come beforevar ab = ...
It is result from
The text was updated successfully, but these errors were encountered: