alfredosalzillo / rollup-plugin-multi-input

A Rollup plugin to bundle modular libraries

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Relative path not working properly

fatihaziz opened this issue · comments

Hello,
It seems the relative path not working as expected,

image

Why the output of src/utils/index.ts become dist/utils/utils/index.cjs

sample rollup.config.js

import multiInput from 'rollup-plugin-multi-input';
import rollupPluginTypescript from "@rollup/plugin-typescript"

export default {
    input: ['src/index.ts', 'src/utils/index.ts'],
    output: {
      format: 'esm',
      dir: 'dist'
    },
    plugins: [ 
      multiInput({ relative: 'src/' }),
      rollupPluginTypescript()
    ],
};

Thank you for your attention.

I'm experiencing this issue as well

@fatihaziz what version of rollup are you using?