@amcharts/amcharts5 5.2.17 → 5.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.internal/charts/stock/toolbar/DropdownList.d.ts +1 -0
- package/.internal/charts/stock/toolbar/DropdownList.d.ts.map +1 -1
- package/.internal/charts/stock/toolbar/DropdownList.js +13 -8
- package/.internal/charts/stock/toolbar/DropdownList.js.map +1 -1
- package/.internal/charts/stock/toolbar/IndicatorControl.d.ts +1 -1
- package/.internal/charts/stock/toolbar/IndicatorControl.d.ts.map +1 -1
- package/.internal/charts/stock/toolbar/IndicatorControl.js +7 -1
- package/.internal/charts/stock/toolbar/IndicatorControl.js.map +1 -1
- package/.internal/charts/stock/toolbar/StockToolbarCSS.d.ts.map +1 -1
- package/.internal/charts/stock/toolbar/StockToolbarCSS.js +5 -0
- package/.internal/charts/stock/toolbar/StockToolbarCSS.js.map +1 -1
- package/.internal/charts/xy/axes/Axis.d.ts.map +1 -1
- package/.internal/charts/xy/axes/Axis.js +1 -0
- package/.internal/charts/xy/axes/Axis.js.map +1 -1
- package/.internal/charts/xy/series/XYSeries.d.ts.map +1 -1
- package/.internal/charts/xy/series/XYSeries.js +2 -0
- package/.internal/charts/xy/series/XYSeries.js.map +1 -1
- package/.internal/core/render/Container.d.ts.map +1 -1
- package/.internal/core/render/Container.js +12 -0
- package/.internal/core/render/Container.js.map +1 -1
- package/.internal/core/render/HorizontalLayout.d.ts.map +1 -1
- package/.internal/core/render/HorizontalLayout.js +10 -2
- package/.internal/core/render/HorizontalLayout.js.map +1 -1
- package/.internal/core/render/VerticalLayout.d.ts.map +1 -1
- package/.internal/core/render/VerticalLayout.js +10 -2
- package/.internal/core/render/VerticalLayout.js.map +1 -1
- package/.internal/core/util/Color.d.ts +1 -1
- package/.internal/core/util/Color.js +1 -1
- package/.internal/core/util/Color.js.map +1 -1
- package/CHANGELOG.md +13 -0
- package/examples/javascript/flow-chord/package.json +1 -1
- package/examples/javascript/flow-chord-directed/package.json +1 -1
- package/examples/javascript/flow-chord-non-ribbon/package.json +1 -1
- package/examples/javascript/flow-sankey/package.json +1 -1
- package/examples/javascript/gauge/package.json +1 -1
- package/examples/javascript/gauge-bands/package.json +1 -1
- package/examples/javascript/hierarchy-force-directed/package.json +1 -1
- package/examples/javascript/hierarchy-pack/package.json +1 -1
- package/examples/javascript/hierarchy-partition/package.json +1 -1
- package/examples/javascript/hierarchy-sunburst/package.json +1 -1
- package/examples/javascript/hierarchy-tree/package.json +1 -1
- package/examples/javascript/hierarchy-treemap/package.json +1 -1
- package/examples/javascript/jest/README.md +6 -0
- package/examples/javascript/jest/babel.config.js +6 -0
- package/examples/javascript/jest/index.css +11 -0
- package/examples/javascript/jest/index.html +12 -0
- package/examples/javascript/jest/index.js +3 -0
- package/examples/javascript/jest/package.json +30 -0
- package/examples/javascript/jest/src/chart.js +118 -0
- package/examples/javascript/jest/src/chart.test.js +16 -0
- package/examples/javascript/jest/webpack.config.js +38 -0
- package/examples/javascript/json/package.json +1 -1
- package/examples/javascript/map-animating-along-lines/package.json +1 -1
- package/examples/javascript/map-day-and-night/package.json +1 -1
- package/examples/javascript/map-globe-rotate-to-country/package.json +1 -1
- package/examples/javascript/map-globe-with-projected-circles/package.json +1 -1
- package/examples/javascript/map-with-bubbles/package.json +1 -1
- package/examples/javascript/map-zoom-to-country/package.json +1 -1
- package/examples/javascript/misc-40-charts/package.json +1 -1
- package/examples/javascript/misc-microchart-grid/package.json +1 -1
- package/examples/javascript/pie-chart/package.json +1 -1
- package/examples/javascript/pie-donut-chart/package.json +1 -1
- package/examples/javascript/pie-variable-radius/package.json +1 -1
- package/examples/javascript/radar-column-iwatch-style/package.json +1 -1
- package/examples/javascript/radar-heat-map/package.json +1 -1
- package/examples/javascript/radar-line/package.json +1 -1
- package/examples/javascript/radar-time-line/package.json +1 -1
- package/examples/javascript/sliced-funnel/package.json +1 -1
- package/examples/javascript/sliced-pictorial-stacked/package.json +1 -1
- package/examples/javascript/sliced-pyramid/package.json +1 -1
- package/examples/javascript/stock-chart/package.json +1 -1
- package/examples/javascript/stock-chart-comparing-stocks/index.js +24 -4
- package/examples/javascript/stock-chart-comparing-stocks/package.json +1 -1
- package/examples/javascript/stock-chart-data-granularity/package.json +1 -1
- package/examples/javascript/stock-chart-data-grouping/package.json +1 -1
- package/examples/javascript/stock-chart-intraday/package.json +1 -1
- package/examples/javascript/stock-chart-live/package.json +1 -1
- package/examples/javascript/stock-chart-volume-separate-panel/package.json +1 -1
- package/examples/javascript/venn-diagram/package.json +1 -1
- package/examples/javascript/wordcloud-with-data/package.json +1 -1
- package/examples/javascript/wordcloud-with-text/package.json +1 -1
- package/examples/javascript/xy-100-percent-stacked-column/package.json +1 -1
- package/examples/javascript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
- package/examples/javascript/xy-bubble/package.json +1 -1
- package/examples/javascript/xy-candlestick/package.json +1 -1
- package/examples/javascript/xy-clustered-column/package.json +1 -1
- package/examples/javascript/xy-column/package.json +1 -1
- package/examples/javascript/xy-comparing-series-google-analytics-style/package.json +1 -1
- package/examples/javascript/xy-data-grouping/package.json +1 -1
- package/examples/javascript/xy-draggable-range/package.json +1 -1
- package/examples/javascript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
- package/examples/javascript/xy-dumbbell plot/package.json +1 -1
- package/examples/javascript/xy-evenly-spaced-date-axis/package.json +1 -1
- package/examples/javascript/xy-line/package.json +1 -1
- package/examples/javascript/xy-line-highlight-on-legend-hover/package.json +1 -1
- package/examples/javascript/xy-live-data/package.json +1 -1
- package/examples/javascript/xy-multiple-synced-value-axes/package.json +1 -1
- package/examples/javascript/xy-ohlc/package.json +1 -1
- package/examples/javascript/xy-real-time-data-sorting/package.json +1 -1
- package/examples/javascript/xy-smoothed-line/package.json +1 -1
- package/examples/javascript/xy-stacked-and-clustered-column/package.json +1 -1
- package/examples/javascript/xy-stacked-column/package.json +1 -1
- package/examples/javascript/xy-stacked-step/package.json +1 -1
- package/examples/javascript/xy-stock/package.json +1 -1
- package/examples/javascript/xy-stock-comparing/package.json +1 -1
- package/examples/typescript/flow-chord/package.json +1 -1
- package/examples/typescript/flow-chord-directed/package.json +1 -1
- package/examples/typescript/flow-chord-non-ribbon/package.json +1 -1
- package/examples/typescript/flow-sankey/package.json +1 -1
- package/examples/typescript/gauge/package.json +1 -1
- package/examples/typescript/gauge-bands/package.json +1 -1
- package/examples/typescript/hierarchy-force-directed/package.json +1 -1
- package/examples/typescript/hierarchy-pack/package.json +1 -1
- package/examples/typescript/hierarchy-partition/package.json +1 -1
- package/examples/typescript/hierarchy-sunburst/package.json +1 -1
- package/examples/typescript/hierarchy-tree/package.json +1 -1
- package/examples/typescript/hierarchy-treemap/package.json +1 -1
- package/examples/typescript/jest/README.md +6 -0
- package/examples/typescript/jest/babel.config.js +6 -0
- package/examples/typescript/jest/index.css +11 -0
- package/examples/typescript/jest/index.html +12 -0
- package/examples/typescript/jest/index.ts +3 -0
- package/examples/typescript/jest/package.json +32 -0
- package/examples/typescript/jest/src/chart.test.js +16 -0
- package/examples/typescript/jest/src/chart.ts +118 -0
- package/examples/typescript/jest/tsconfig.json +12 -0
- package/examples/typescript/jest/webpack.config.js +45 -0
- package/examples/typescript/json/package.json +1 -1
- package/examples/typescript/map-animating-along-lines/package.json +1 -1
- package/examples/typescript/map-day-and-night/package.json +1 -1
- package/examples/typescript/map-globe-rotate-to-country/package.json +1 -1
- package/examples/typescript/map-globe-with-projected-circles/package.json +1 -1
- package/examples/typescript/map-with-bubbles/package.json +1 -1
- package/examples/typescript/map-zoom-to-country/package.json +1 -1
- package/examples/typescript/misc-40-charts/package.json +1 -1
- package/examples/typescript/misc-microchart-grid/package.json +1 -1
- package/examples/typescript/pie-chart/package.json +1 -1
- package/examples/typescript/pie-donut-chart/package.json +1 -1
- package/examples/typescript/pie-variable-radius/package.json +1 -1
- package/examples/typescript/radar-column-iwatch-style/package.json +1 -1
- package/examples/typescript/radar-heat-map/package.json +1 -1
- package/examples/typescript/radar-line/package.json +1 -1
- package/examples/typescript/radar-time-line/package.json +1 -1
- package/examples/typescript/sliced-funnel/package.json +1 -1
- package/examples/typescript/sliced-pictorial-stacked/package.json +1 -1
- package/examples/typescript/sliced-pyramid/package.json +1 -1
- package/examples/typescript/stock-chart/package.json +1 -1
- package/examples/typescript/stock-chart-comparing-stocks/index.ts +24 -4
- package/examples/typescript/stock-chart-comparing-stocks/package.json +1 -1
- package/examples/typescript/stock-chart-data-granularity/package.json +1 -1
- package/examples/typescript/stock-chart-data-grouping/package.json +1 -1
- package/examples/typescript/stock-chart-intraday/package.json +1 -1
- package/examples/typescript/stock-chart-live/package.json +1 -1
- package/examples/typescript/stock-chart-volume-separate-panel/package.json +1 -1
- package/examples/typescript/venn-diagram/package.json +1 -1
- package/examples/typescript/wordcloud-with-data/package.json +1 -1
- package/examples/typescript/wordcloud-with-text/package.json +1 -1
- package/examples/typescript/xy-100-percent-stacked-column/package.json +1 -1
- package/examples/typescript/xy-animated-bullet-at-the-end-of-the-series/package.json +1 -1
- package/examples/typescript/xy-bubble/package.json +1 -1
- package/examples/typescript/xy-candlestick/package.json +1 -1
- package/examples/typescript/xy-clustered-column/package.json +1 -1
- package/examples/typescript/xy-column/package.json +1 -1
- package/examples/typescript/xy-comparing-series-google-analytics-style/package.json +1 -1
- package/examples/typescript/xy-data-grouping/package.json +1 -1
- package/examples/typescript/xy-draggable-range/package.json +1 -1
- package/examples/typescript/xy-drawing-series-with-mouse-or-touch/package.json +1 -1
- package/examples/typescript/xy-dumbbell plot/package.json +1 -1
- package/examples/typescript/xy-evenly-spaced-date-axis/package.json +1 -1
- package/examples/typescript/xy-line/package.json +1 -1
- package/examples/typescript/xy-line-highlight-on-legend-hover/package.json +1 -1
- package/examples/typescript/xy-live-data/package.json +1 -1
- package/examples/typescript/xy-multiple-synced-value-axes/package.json +1 -1
- package/examples/typescript/xy-ohlc/package.json +1 -1
- package/examples/typescript/xy-real-time-data-sorting/package.json +1 -1
- package/examples/typescript/xy-smoothed-line/package.json +1 -1
- package/examples/typescript/xy-stacked-and-clustered-column/package.json +1 -1
- package/examples/typescript/xy-stacked-column/package.json +1 -1
- package/examples/typescript/xy-stacked-step/package.json +1 -1
- package/examples/typescript/xy-stock/package.json +1 -1
- package/examples/typescript/xy-stock-comparing/package.json +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "amcharts5-example-xy-drawing-series-with-mouse-or-touch",
|
|
4
4
|
"version": "0.1.0",
|
|
5
5
|
"devDependencies": {
|
|
6
|
-
"@amcharts/amcharts5": "^5.2.
|
|
6
|
+
"@amcharts/amcharts5": "^5.2.18",
|
|
7
7
|
"source-map-loader": "^3.0.0",
|
|
8
8
|
"webpack": "^5.1.3",
|
|
9
9
|
"webpack-cli": "^4.1.0",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
body {
|
|
2
|
+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
3
|
+
padding: 0;
|
|
4
|
+
margin: 0;
|
|
5
|
+
background-color: #ffffff;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
#chartdiv {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 80vh;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<title>amCharts 5 Example - jest</title>
|
|
6
|
+
<link rel="stylesheet" href="index.css" />
|
|
7
|
+
</head>
|
|
8
|
+
<body>
|
|
9
|
+
<div id="chartdiv"></div>
|
|
10
|
+
<script src="dist/index.js"></script>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"name": "amcharts5-example-jest",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"devDependencies": {
|
|
6
|
+
"@amcharts/amcharts5": "^5.2.18",
|
|
7
|
+
"source-map-loader": "^3.0.0",
|
|
8
|
+
"ts-loader": "^9.2.2",
|
|
9
|
+
"typescript": "^4.3.4",
|
|
10
|
+
"webpack": "^5.1.3",
|
|
11
|
+
"webpack-cli": "^4.1.0",
|
|
12
|
+
"webpack-dev-server": "^3.11.0",
|
|
13
|
+
"@babel/core": "^7.18.10",
|
|
14
|
+
"@babel/preset-env": "^7.18.10",
|
|
15
|
+
"@babel/preset-typescript": "^7.18.6",
|
|
16
|
+
"babel-jest": "^28.1.3",
|
|
17
|
+
"jest-environment-jsdom": "^28.1.3",
|
|
18
|
+
"jest": "^28.1.3",
|
|
19
|
+
"canvas": "^2.9.3"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "webpack",
|
|
23
|
+
"start": "webpack serve --mode development",
|
|
24
|
+
"test": "jest"
|
|
25
|
+
},
|
|
26
|
+
"jest": {
|
|
27
|
+
"testEnvironment": "jsdom",
|
|
28
|
+
"transformIgnorePatterns": [
|
|
29
|
+
"/node_modules/(?!@amcharts|d3-)"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Import chart code
|
|
2
|
+
import { makeChart } from "./chart";
|
|
3
|
+
|
|
4
|
+
beforeEach(() => {
|
|
5
|
+
// Create <div> which is needed by the chart
|
|
6
|
+
document.body.innerHTML = `<div id="chartdiv"></div>`;
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
test("chart exists", () => {
|
|
10
|
+
const { root, chart } = makeChart();
|
|
11
|
+
|
|
12
|
+
// Test chart
|
|
13
|
+
expect(root).toBeDefined();
|
|
14
|
+
expect(chart).toBeDefined();
|
|
15
|
+
expect(chart.get("wheelX")).toBe("panX");
|
|
16
|
+
});
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as am5 from "@amcharts/amcharts5";
|
|
2
|
+
import * as am5xy from "@amcharts/amcharts5/xy";
|
|
3
|
+
import am5themes_Animated from "@amcharts/amcharts5/themes/Animated";
|
|
4
|
+
|
|
5
|
+
export function makeChart() {
|
|
6
|
+
// Create root element
|
|
7
|
+
// https://www.amcharts.com/docs/v5/getting-started/#Root_element
|
|
8
|
+
const root = am5.Root.new("chartdiv");
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
// Set themes
|
|
12
|
+
// https://www.amcharts.com/docs/v5/concepts/themes/
|
|
13
|
+
root.setThemes([
|
|
14
|
+
am5themes_Animated.new(root)
|
|
15
|
+
]);
|
|
16
|
+
|
|
17
|
+
// Specify date fields, so that they are formatted accordingly in tooltips
|
|
18
|
+
// https://www.amcharts.com/docs/v5/concepts/formatters/data-placeholders/#Formatting_placeholders
|
|
19
|
+
root.dateFormatter.setAll({
|
|
20
|
+
dateFields: ["valueX"]
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
// Create chart
|
|
25
|
+
// https://www.amcharts.com/docs/v5/charts/xy-chart/
|
|
26
|
+
const chart = root.container.children.push(am5xy.XYChart.new(root, {
|
|
27
|
+
panX: false,
|
|
28
|
+
panY: false,
|
|
29
|
+
wheelX: "panX",
|
|
30
|
+
wheelY: "zoomX"
|
|
31
|
+
}));
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
// Add cursor
|
|
35
|
+
// https://www.amcharts.com/docs/v5/charts/xy-chart/cursor/
|
|
36
|
+
const cursor = chart.set("cursor", am5xy.XYCursor.new(root, {
|
|
37
|
+
behavior: "zoomX"
|
|
38
|
+
}));
|
|
39
|
+
cursor.lineY.set("visible", false);
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
// Generate random data
|
|
43
|
+
let date = new Date();
|
|
44
|
+
date.setHours(0, 0, 0, 0);
|
|
45
|
+
let value = 100;
|
|
46
|
+
|
|
47
|
+
function generateData() {
|
|
48
|
+
value = Math.round((Math.random() * 10 - 5) + value);
|
|
49
|
+
am5.time.add(date, "day", 1);
|
|
50
|
+
return {
|
|
51
|
+
date: date.getTime(),
|
|
52
|
+
value: value
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function generateDatas(count: number) {
|
|
57
|
+
const data = [];
|
|
58
|
+
for (let i = 0; i < count; ++i) {
|
|
59
|
+
data.push(generateData());
|
|
60
|
+
}
|
|
61
|
+
return data;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
// Create axes
|
|
66
|
+
// https://www.amcharts.com/docs/v5/charts/xy-chart/axes/
|
|
67
|
+
const xAxis = chart.xAxes.push(am5xy.DateAxis.new(root, {
|
|
68
|
+
maxDeviation: 0.5,
|
|
69
|
+
baseInterval: {
|
|
70
|
+
timeUnit: "day",
|
|
71
|
+
count: 1
|
|
72
|
+
},
|
|
73
|
+
renderer: am5xy.AxisRendererX.new(root, {
|
|
74
|
+
pan:"zoom"
|
|
75
|
+
}),
|
|
76
|
+
tooltip: am5.Tooltip.new(root, {})
|
|
77
|
+
}));
|
|
78
|
+
|
|
79
|
+
const yAxis = chart.yAxes.push(am5xy.ValueAxis.new(root, {
|
|
80
|
+
maxDeviation:1,
|
|
81
|
+
renderer: am5xy.AxisRendererY.new(root, {
|
|
82
|
+
pan:"zoom"
|
|
83
|
+
})
|
|
84
|
+
}));
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
// Add series
|
|
88
|
+
// https://www.amcharts.com/docs/v5/charts/xy-chart/series/
|
|
89
|
+
const series = chart.series.push(am5xy.LineSeries.new(root, {
|
|
90
|
+
name: "Series",
|
|
91
|
+
xAxis: xAxis,
|
|
92
|
+
yAxis: yAxis,
|
|
93
|
+
valueYField: "value",
|
|
94
|
+
valueXField: "date",
|
|
95
|
+
tooltip: am5.Tooltip.new(root, {
|
|
96
|
+
labelText: "{valueX}: {valueY}"
|
|
97
|
+
})
|
|
98
|
+
}));
|
|
99
|
+
|
|
100
|
+
// Add scrollbar
|
|
101
|
+
// https://www.amcharts.com/docs/v5/charts/xy-chart/scrollbars/
|
|
102
|
+
chart.set("scrollbarX", am5.Scrollbar.new(root, {
|
|
103
|
+
orientation: "horizontal"
|
|
104
|
+
}));
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
// Set data
|
|
108
|
+
let data = generateDatas(1200);
|
|
109
|
+
series.data.setAll(data);
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
// Make stuff animate on load
|
|
113
|
+
// https://www.amcharts.com/docs/v5/concepts/animations/#Forcing_appearance_animation
|
|
114
|
+
series.appear(1000);
|
|
115
|
+
chart.appear(1000, 100);
|
|
116
|
+
|
|
117
|
+
return { root, chart };
|
|
118
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var $path = require("path");
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
mode: "production",
|
|
5
|
+
|
|
6
|
+
devtool: "source-map",
|
|
7
|
+
|
|
8
|
+
stats: "errors-warnings",
|
|
9
|
+
|
|
10
|
+
target: ["web", "es5"],
|
|
11
|
+
|
|
12
|
+
entry: {
|
|
13
|
+
index: "./index.ts",
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
devServer: {
|
|
17
|
+
publicPath: "/dist/",
|
|
18
|
+
liveReload: true,
|
|
19
|
+
overlay: true,
|
|
20
|
+
noInfo: true,
|
|
21
|
+
open: true
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
output: {
|
|
25
|
+
path: $path.resolve(__dirname, "dist"),
|
|
26
|
+
publicPath: "dist/",
|
|
27
|
+
filename: "[name].js",
|
|
28
|
+
chunkFilename: "[name].js"
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
resolve: {
|
|
32
|
+
extensions: [".ts", ".tsx", ".js"]
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
module: {
|
|
36
|
+
rules: [{
|
|
37
|
+
test: /.tsx?$/,
|
|
38
|
+
loader: "ts-loader"
|
|
39
|
+
}, {
|
|
40
|
+
test: /.js$/,
|
|
41
|
+
use: ["source-map-loader"],
|
|
42
|
+
enforce: "pre"
|
|
43
|
+
}]
|
|
44
|
+
}
|
|
45
|
+
};
|