Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it compatible with the configuration format of TSUP? #294

Open
zhangfisher opened this issue Oct 15, 2024 · 2 comments
Open

Is it compatible with the configuration format of TSUP? #294

zhangfisher opened this issue Oct 15, 2024 · 2 comments

Comments

@zhangfisher
Copy link

What problem does this feature solve?

The configuration format of TSUP looks very simple

What does the proposed API look like?

tsup

@Timeless0911
Copy link
Collaborator

We support different configurations for each format, and it can be easily migrated from tsup.

@zhangfisher
Copy link
Author

rslib seems to have not been released stably, and the configuration document is not available yet.

我想尝试一下用来打包我的库autostore,tsup配置如下:

export default defineConfig( 
    {
        entry: [
            'src/index.ts'
        ],
        format: ['esm','cjs'],
        dts: true,
        splitting: true,
        sourcemap: true,
        clean: true,
        treeshake:true,  
        minify: true,
        noExternal:['flex-tools','mitt']
    }  )
 

对应的rslib配置应该是怎么样的?

@fi3ework fi3ework reopened this Oct 16, 2024
@fi3ework fi3ework changed the title [Feature]: Is it compatible with the configuration format of TSUP? Is it compatible with the configuration format of TSUP? Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants