Skip to content

Latest commit

 

History

History
34 lines (18 loc) · 483 Bytes

README.md

File metadata and controls

34 lines (18 loc) · 483 Bytes

webpack3 ie8

1.npm install

2.删除node_modules\babel-runtime\helpers\classCallCheck.js 的抛出异常的代码

// node_modules\babel-runtime\helpers\classCallCheck.js

"use strict";

exports.__esModule = true;

exports.default = function (instance, Constructor) {
  if (!(instance instanceof Constructor)) {
    // 不然打包报错
    // throw new TypeError("Cannot call a class as a function");
  }
};

运行

npm start

打包

npm run build