We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e632674 commit 2d9f0e8Copy full SHA for 2d9f0e8
src/my-plotly.js
@@ -0,0 +1,14 @@
1
+/*
2
+ * To change this license header, choose License Headers in Project Properties.
3
+ * To change this template file, choose Tools | Templates
4
+ * and open the template in the editor.
5
+ */
6
+var Plotly = require('plotly.js/lib/core');
7
+
8
+// Load only scatter
9
+Plotly.register([
10
+ require('plotly.js/lib/scatter')
11
+]);
12
13
+module.exports = Plotly;
14
webpack.config.js
@@ -11,6 +11,8 @@ module.exports = {
filename: 'my-plotly.js'
},
module: {
- loaders: []
+ loaders: [
15
+ {test: /node_modules/, loader: 'ify'}
16
+ ]
17
}
18
};
0 commit comments