Skip to content

Commit

Permalink
Add notes about why certain config options are passed to
Browse files Browse the repository at this point in the history
rollup-plugin-ts
  • Loading branch information
NullVoxPopuli committed Jun 29, 2022
1 parent 984ad9c commit 672470b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/addon-dev/sample-typescript-rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,12 @@ export default defineConfig({
// but we need the ember plugins converted first
// (template compilation and co-location)
transpiler: 'babel',
// without the browserlist, recently landed JS features are polyfilled.
// It should be primarily up to the consuming app whether or not they need to
// polyfill whatever JS features.
browserslist: ['last 2 firefox versions', 'last 2 chrome versions'],
tsconfig: {
// when `hooks` is specified, fileName is required
fileName: 'tsconfig.json',
hook: (config) => ({
...config,
Expand Down

0 comments on commit 672470b

Please sign in to comment.