Closed
Description
- Rollup Plugin Name: plugin-alias
- Rollup Plugin Version: 3.0.1.0.2
- Rollup Version: 1.32.1
- Operating System (or Browser): Mac/Chrome
- Node Version: 13.8.0
How Do We Reproduce?
if you include a file with a relative path:
import { file } from './file.js';
and somewhere else import it with an alias:
import { file } from 'alias/file.js';
the file appears two times in the bundle, one time as file and one time as file$1 and it also gets called two times. If I just use the relative path in both examples or the absolute path in both examples, the file appears there just one time and gets called just one time.
Expected Behavior
The js-import should just appear one time in the bundle.js and should not be called twice.
Actual Behavior
The imported js-file apperas twice in the bundle.js. One time as file and one time as file$1 and it gets called twice.