[fix] Convert Animated vendor files to ES modules

Close #1846
This commit is contained in:
NE-SmallTown
2020-12-16 21:27:08 +08:00
committed by Nicolas Gallagher
parent abd4cc7cbf
commit 17e4cfb4b2
4 changed files with 10 additions and 6 deletions

View File

@@ -79,7 +79,7 @@ function newtonRaphsonIterate(aX, _aGuessT, mX1, mX2) {
return aGuessT;
}
module.exports = function bezier(
export default function bezier(
mX1: number,
mY1: number,
mX2: number,

View File

@@ -7,7 +7,9 @@
'use strict';
module.exports = {
createInteractionHandle: function() {},
clearInteractionHandle: function() {}
const InteractionManager = {
createInteractionHandle() {},
clearInteractionHandle() {}
};
export default InteractionManager;

View File

@@ -21,4 +21,4 @@ SetPolyfill.prototype.forEach = function(cb) {
this._cache.forEach(cb);
};
module.exports = SetPolyfill;
export default SetPolyfill;

View File

@@ -4,7 +4,9 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
module.exports = function(style) {
export default function flattenStyle(style) {
return style;
};