Skip to content

Commit

Permalink
refactor: change marked usage for ie11
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 30, 2020
1 parent c2a65e4 commit 6084583
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 6 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@angular/platform-browser-dynamic": "^9.1.0",
"@angular/router": "~9.0.3",
"@ngx-pwa/local-storage": "^9.0.2",
"core-js": "^3.6.4",
"d3": "^5.15.0",
"d3-graphviz": "^3.0.4",
"dagre-d3": "^0.6.4",
Expand Down
2 changes: 1 addition & 1 deletion src/app/presentation/maturity/maturity.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import marked from 'marked';
import marked from 'marked/lib/marked';
import MarkdownHelper from '../../shared/components/model/markdown.helper';
import {MarkdownTaskItemService} from '../../shared/components/markdown-radar-chart/markdown-task-item.service';
import {MarkdownListModel} from '../../shared/components/model/markdown.model';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {DOCUMENT, Location} from '@angular/common';
import {ActivatedRoute} from '@angular/router';

import {MarkdownService} from 'ngx-markdown';
import marked, {Slugger} from 'marked';
import marked, {Slugger} from 'marked/lib/marked';
import {maxBy} from 'lodash-es';
import * as echarts from 'echarts';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {AfterViewInit, Component, Input, OnInit} from '@angular/core';
import marked from 'marked';
import marked from 'marked/lib/marked';
import {ReporterChartModel} from '../model/reporter-chart.model';
import * as d3 from 'd3';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import marked from 'marked';
import marked from 'marked/lib/marked';
import { zip } from 'lodash-es';

const LedgeMarkdownConverter = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, Input, OnInit } from '@angular/core';
import marked from 'marked';
import marked from 'marked/lib/marked';
import { zip } from 'lodash-es';

interface ProcessTable {
Expand Down
17 changes: 17 additions & 0 deletions src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,23 @@
* BROWSER POLYFILLS
*/

import 'core-js/es/object';
import 'core-js/es/function';
import 'core-js/es/parse-int';
import 'core-js/es/parse-float';
import 'core-js/es/number';
import 'core-js/es/math';
import 'core-js/es/string';
import 'core-js/es/date';
import 'core-js/es/array';
import 'core-js/es/regexp';
import 'core-js/es/map';
import 'core-js/es/weak-map';
import 'core-js/es/set';


import 'core-js/es/reflect';

/** IE10 and IE11 requires the following for NgClass support on SVG elements */
// import 'classlist.js'; // Run `npm install --save classlist.js`.

Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2720,7 +2720,7 @@ core-js-compat@^3.6.0:
browserslist "^4.8.3"
semver "7.0.0"

core-js@3.6.4, core-js@^3.1.3:
core-js@3.6.4, core-js@^3.1.3, core-js@^3.6.4:
version "3.6.4"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.6.4.tgz#440a83536b458114b9cb2ac1580ba377dc470647"
integrity sha512-4paDGScNgZP2IXXilaffL9X7968RuvwlkK3xWtZRVqgd8SYNiVKRJvkFd1aqqEuPfN7E68ZHEp9hDj6lHj4Hyw==
Expand Down

0 comments on commit 6084583

Please sign in to comment.