ampproject / ampproject/rollup-plugin-closure-compiler
Do you have an example about how to generate ES5 for IIFE and ES2025 for ESM ?
Open
- Dominant language
- TypeScript
- Stars
- 293
- Forks
- 28
- PR merge metrics
- No merged PRs in 30d
Description
Do you have an example how to change the language output depending on the output format when compiling multiple bundles?
i.e.
```
compiler({
language_in: 'ECMASCRIPT_2017',
language_out: 'ECMASCRIPT_2015'
}),
```
Contributor guide
Research direction
Start by reviewing the existing documentation and compiler configuration examples for multiple bundles. Use the issue's IIFE/ESM and ECMAScript version requirements to frame an example, and consider the work done when it shows how each output format receives its intended language target.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, rollup
- Domain
- build-system, documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100