Skip to content

iview 按需引入 ie浏览器报语法错误;但是vue-cli2.0按同样规则没有问题 #2330

@qq986063761

Description

@qq986063761

Version

3.0.1

Reproduction link

https://github.com/qq986063761/iview-demand-bug/tree/master

Node and OS info

node版本8.9.1;npm版本6.2.0;windows 10;

Steps to reproduce

1、下载重现链接中的仓库代码;
2、安装默认依赖后执行npm run dev;
3、使用谷歌浏览器和ie11浏览器分别访问本地链接;

What is expected?

都能正常显示iview组件样式

What is actually happening?

1、谷歌可以正常显示;
2、ie(非edge,edge正常显示)无法正常显示报错语法错误;但是尝试以2.x方式在3.x脚手架中通过include.add追加iview/src目录到js rule规则中,但是还是语法报错,原因应该是es6语法兼容问题导致;


无业务场景,全新@vue/cli demo项目尝试;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions