我正在导入以下类:
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
阶段存在问题。从此讨论开始边缘:SCRIPT1028:期望的标识符,字符串或数字我没有得到如何使用babel解决问题的方法。我面临的问题是我...