To repro:
- Run
npm i
to install dependencies - Run
npm run build
to bundle the code - Look at
out/test/two.js
Expected:
import { one } from './one.js';
function two() {
one();
console.log('two');
}
export { two };
Actual:
function one() {
console.log('one');
}
function two() {
one();
console.log('two');
}
export { two };
Note: Removing rollup-plugin-typescript2
from the plugins array eliminates the repro.