bahmutov / bahmutov/compiled

need to be able to specify rollup options/plugins

Open
#22 4 comments 0 reactions 0 assignees View on GitHub
enhancement question
Dominant language
JavaScript
Stars
41
Forks
2
PR merge metrics
No merged PRs in 30d

Description

I was trying to find a good way to allow this behavior and submit a PR, but nothing elegant was jumping at me. There are two main problems:
- compiled's configuration is in JSON
- Rollup's configuration file is executed JavaScript

So, I can't use plugin functions in `package.json` obviously, and I can't specify my plugins for Rollup in any manner other than in a `.js` file.

Potential solutions:
- support a `.js` config file in addition to `config` prop of `package.json`
- allow a new option which specifies a path to a Rollup config file (I'm not sure how well this would work with multiple entry points, or if it would be mutually exclusive with `files` property)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.