Skip to content

Commit f9b809e

Browse files
committed
fix: always mark template literal as supported
1 parent 271518f commit f9b809e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

playground/multi-export/src/pure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import {answer} from 'dummy-side-effects'
22

33
/** @public */
44
export function getAnswer() {
5-
return answer
5+
return `answer:${answer}`
66
}

src/node/tasks/rollup/resolveRollupConfig.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ export function resolveRollupConfig(
100100
tsconfig: ctx.ts.configPath || 'tsconfig.json',
101101
treeShaking: true,
102102
minifySyntax: config?.minify !== false,
103+
supported: {
104+
'template-literal': true,
105+
},
103106
}),
104107
Array.isArray(config?.babel?.plugins) &&
105108
getBabelOutputPlugin({

0 commit comments

Comments
 (0)