operator ..props在Microsoft Edge [41.16299.1480.0]上不起作用

问题描述 投票:-1回答:1
从此讨论开始Edge: SCRIPT1028: Expected identifier, string or number,我不知道如何使用babel解决问题。我面临的问题是我正在使用的模块(不是我的类)内部,因此我无法(轻松)在代码上打补丁。

我正在导入以下类:

import { Class1 } from '@eds/vanilla'; <-- This is not mine that his then importing another class ./src/public/eds-components/charts/bar-charts/Class1.js That is importing : import { ColorScale } from '../common/ColorScale'; export class ColorScale { /** * Setup color scale properties * @param {Object} props - The properties to initialize the color scale * @param {Array} props.colors - The array of colors */ constructor(props) { props = { ...props }; this.length = props.length || 15; this.colors = props.colors || this.generateColorMatrix(this.length); }

如何使用babel / polyfills或其他方法来解决不受我控制的模块上的问题?

似乎在[[pre-build-optimizer

阶段存在问题。enter image description here

从此讨论开始边缘:SCRIPT1028:期望的标识符,字符串或数字我没有得到如何使用babel解决问题的方法。我面临的问题是我...

node.js angular babel microsoft-edge polyfills
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.