[PR WELCOME] Dynamic rollup configuration // print descriptive error messages
See original GitHub issueType of Issue
[x] Feature Request
Description
Many people seem to have the same issue with various libraries: they don’t have correct rollup externals.
How To Reproduce
Look at #310, #301, #85, #119, #108, #142, #230, #163, etc…
Expected Behaviour
I suspect that a lot of these issues can be avoided by printing a more helpful error message.
Version Information
ng-packagr: v2.x.y
node: v8.x.y
@angular: v4.x.y
rxjs:
zone.js:
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (11 by maintainers)
Top Results From Across the Web
rollup.js
Rollup is a module bundler for JavaScript which compiles small pieces of code into something larger and more complex, such as a library...
Read more >Metadata API Developer Guide
Metadata is data that describes other data. To understand how Salesforce defines metadata, contrast business data with Salesforce metadata.
Read more >Dynamic Dynamic SQL - Ask TOM
I don't understand what your example is trying to show here. The first loop never executes (there are no tables named MP). So,...
Read more >How to Bundle JavaScript With Rollup — Step-by-Step Tutorial
By the end of this tutorial, we'll have Rollup configured to: combine our scripts,; remove unused code,; transpile it to work with older...
Read more >Azure DevOps Server 2020 Release Notes - Microsoft Learn
Fix Gated check-in builds error when the Organization settings for pipeline had ... Azure DevOps Server 2020.0.2 is a roll up of bug...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Question, why not have externals in rollup be a function like the below so that all node modules are treated as externals ?
@DavidParks8, @dherges any feedback?
Hm. Obviously,
lib.externals
was driven by rollup’sexternal
andglobal
settings. So that’s what it was in the past.Now, let’s switch perspective to the present. If I, as an author or maintainer of a library, write a library depending on a third-party –
import { ... } from '@foo/bar';
in TypeScript code – , then I’d like to treat the third-party as apeerDependency: { "@foo/bar": "..." }
and thus a rollupexternal
– in almost every case.There is one exception that I found and that we use in an enterprisy case: I, as a maintainer, have legacy javascript code that I’d like to embed in the bundles of my library. Why? The legacy may not be on a npm registry, it may be monkey-patched, … that sort of enterprisy things.
Why do we keep writing
external
when external is the 9-out-of-10 use case? Why don’t we writeembedded
for things we’d like to embed and treat everything else asexternal
by default?