-
Notifications
You must be signed in to change notification settings - Fork 24
/
magi-p3-post.js
44 lines (30 loc) · 1.04 KB
/
magi-p3-post.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
module.exports = {
files: [
'src/vaadin-chart.js',
'theme/vaadin-chart-default-theme.js',
'test/exporting-test.html'
],
from: [
`window.ShadyCSS.nativeShadow`,
/window.ShadyCSS.ScopingShim/g,
'import \'highcharts/js/es-modules/masters/highstock.src.js\';',
'/*\n' +
' FIXME(polymer-modulizer): the above comments were extracted\n' +
' from HTML and may be out of place here. Review them and\n' +
' then delete this comment!\n' +
'*/',
/import '..\/vaadin-chart.js';/g,
'import \'dompurify/dist/purify.min.js\';'
],
to: [
`nativeShadow`,
`ScopingShim.prototype`,
`import { nativeShadow } from '@webcomponents/shadycss/src/style-settings.js';
import ScopingShim from '@webcomponents/shadycss/src/scoping-shim.js';
import Highcharts from 'highcharts/js/es-modules/masters/highstock.src.js';`,
``,
`import Highcharts from 'highcharts/js/es-modules/masters/highstock.src.js';
import '../vaadin-chart.js';`,
`import DOMPurify from 'dompurify';`
]
};