also transpile typescript files

note that these have already been converted to javascript by vite
This commit is contained in:
Bruno Windels 2021-11-09 17:59:58 +01:00
parent da7f66a531
commit 122528f9a9

View File

@ -104,7 +104,7 @@ async function buildLegacyChunk(root, chunkName, code) {
const babelPlugin = babel({ const babelPlugin = babel({
babelrc: false, babelrc: false,
filter: filterModule, filter: filterModule,
//exclude: 'node_modules/**', extensions: [".js", ".ts"],
babelHelpers: 'bundled', babelHelpers: 'bundled',
presets: [ presets: [
[ [