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

fix(compiler): support rollup's external input option #3227

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

awk
Copy link

@awk awk commented Jan 29, 2022

Pluck the external option from the stencil config and pass it through to rollup.

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally and any changes were pushed
  • Unit tests (npm test) were run locally and passed
  • E2E Tests (npm run test.karma.prod) were run locally and passed
  • Prettier (npm run prettier) was run locally and passed

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

GitHub Issue Number: #3226

What is the new behavior?

The external option is now supported and works when added to the rollupConfig.inputOptions

Does this introduce a breaking change?

  • Yes
  • No

Testing

In my project (private - sorry) which has a complex set of module dependencies I can see that the desired module is no longer included in the stencil output.

Other information

Pluck the external option from the stencil config and pass it through to rollup.
@awk awk requested a review from a team January 29, 2022 00:43
@rwaskiewicz rwaskiewicz added the Resolution: Needs Investigation This PR or Issue should be investigated from the Stencil team label Jan 31, 2022
@rwaskiewicz
Copy link
Member

rwaskiewicz commented Jan 31, 2022

Thanks for this PR! I see the accompanying issue and have labeled this PR for the team to take a look at both a little more closely.

@awk
Copy link
Author

awk commented Feb 14, 2022

@rwaskiewicz Do you have an update on the process for this PR ? Any outstanding questions or issues?

@rwaskiewicz
Copy link
Member

@awk I think the next steps for this PR is for the team to sit down and review the PR. Specifically, we'll be looking at the changes and convincing ourselves that it doesn't conflict with any internal rollup configuration Stencil currently does. While I can't promise an exact timeline, we'll take a look as soon as we get a chance!

@rwaskiewicz
Copy link
Member

In the mean time, I've enabled the rest of CI to run for this PR to make sure the rest of our checks pass

@rwaskiewicz rwaskiewicz added Resolution: Refine This PR is marked for Jira refinement. We're not working on it - we're talking it through. and removed Resolution: Needs Investigation This PR or Issue should be investigated from the Stencil team Feature: Bundling labels Mar 25, 2022
@TiagoVenceslau
Copy link

@rwaskiewicz Are there any updates on @awk 's PR? This would also be a very important feature for a project we're developing

@mikaelkaron
Copy link

This would be nice to include. The current workaround I'm using is based on this but with a slight modification:

  rollupPlugins: {
    before: [
      {
        name: 'overwrite-rollup-options',
        options: (options: RollupInputOptions) => ({
          ...options,
          external: ['@package/identifier']
        })
      }
    ]
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Refine This PR is marked for Jira refinement. We're not working on it - we're talking it through.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants