@cocos/build-engine 3.0.3(1.2 + ByteDance support) (#7129)

This commit is contained in:
Leslie Leigh (李的序)
2020-08-13 15:56:14 +08:00
committed by GitHub
parent 349c316c36
commit 1cdacdee80
5 changed files with 33 additions and 143 deletions
+2 -3
View File
@@ -1,8 +1,7 @@
import fs from 'fs-extra';
import ps from 'path';
// @ts-ignore
import rpBabel from '@rollup/plugin-babel';
import rpBabel, { RollupBabelInputPluginOptions } from '@rollup/plugin-babel';
import json from '@rollup/plugin-json';
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
@@ -245,7 +244,7 @@ async function _doBuild ({
}]);
}
const babelOptions = {
const babelOptions: RollupBabelInputPluginOptions = {
babelHelpers: 'bundled',
extensions: ['.js', '.ts'],
highlightCode: true,