Angx 5的ngx-prism在Edge / IE中不起作用

时间:2018-07-12 09:54:08

标签: javascript angular microsoft-edge highlight

图书馆似乎无法在Edge中正常工作。我遇到语法错误,因此我可能需要一个polyfill,但是我不确定需要哪个。

Angular-Version : 5.2.10
Angular-cli: 1.7.3

@angular-package/prism: ^2.0.2
"@types/prismjs": "^1.9.0",
"prismjs": "^1.15.0",

将代码捆绑到哪里抛出错误,但是我不确定它有多大帮助:

"use strict";
eval("/* harmony import / var WEBPACK_IMPORTED_MODULE_0__angular_common = webpack_require("./node_modules/@angular/common/esm5/common.js");\n/ harmony import / var WEBPACK_IMPORTED_MODULE_1__angular_core = webpack_require("./node_modules/@angular/core/esm5/core.js");\n/ harmony import / var WEBPACK_IMPORTED_MODULE_2__prism_component = webpack_require("./node_modules/@angular-package/prism/core/prism.component.js");\n\n\n\nconst COMMON_DECLARATIONS_EXPORTS = [WEBPACK_IMPORTED_MODULE_2__prism_component["a" / PrismComponent /]];\nclass ApPrismModule {\n}\n/ harmony export (immutable) */ webpack_exports["a"] = ApPrismModule;\n\nApPrismModule.decorators = [\n { type: WEBPACK_IMPORTED_MODULE_1__angular_core["NgModule"], args: [{\n declarations: COMMON_DECLARATIONS_EXPORTS,\n exports: COMMON_DECLARATIONS_EXPORTS,\n imports: [WEBPACK_IMPORTED_MODULE_0__angular_common["CommonModule"]]\n },] },\n];\nApPrismModule.ctorParameters = () => [];\n//# sourceMappingURL=prism.module.js.map//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4vbm9kZV9tb2R1bGVzL0Bhbmd1bGFyLXBhY2thZ2UvcHJpc20vY29yZS9wcmlzbS5tb2R1bGUuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQXVCO0FBQ0o7QUFDTTtBQUN6QjtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQ0E7QUFDQSxLQUFLO0FBQ0w7QUFDQTtBQ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GVfbW9kdWxlcy9AYW5ndWxhci1wYWNrYWdlL3ByaXNtL2NvcmUvcHJpc20ubW9kdWxlLmpzXG4vLyBtb2R1bGUgY2h1bmtzID0gdmVuZG9yIl0sInNvdXJjZVJvb3QiOiJ3ZWJwYWNrOi8vLyJ9\n//# sourceURL=webpack-internal:///./node_modules/@angular-package/prism/core/prism.module.js\n");

0 个答案:

没有答案