Commit d298ab7d authored by Tejesh's avatar Tejesh 🖖

babel plugin for g1 also

parent 6af15cca
Pipeline #91174 failed with stage
in 1 minute and 16 seconds
......@@ -22,7 +22,8 @@ export default [
resolve(),
commonjs(),
htmlparts('src/formhandler.template.html'),
htmlparts('src/dropdown.template.html')
htmlparts('src/dropdown.template.html'),
babel(babelrc({ config: babelConfig, exclude: 'node_modules/**' }))
]
},
{
......@@ -39,6 +40,7 @@ export default [
commonjs(),
htmlparts('src/formhandler.template.html'),
htmlparts('src/dropdown.template.html'),
babel(babelrc({ config: babelConfig, exclude: 'node_modules/**' })),
uglify({ sourceMap: true })
]
},
......@@ -88,12 +90,18 @@ export default [
{
input: "index-sanddance",
output: { file: "dist/sanddance.min.js", format: "umd", name: "g1", extend: true, sourcemap: true },
plugins: [uglify({ sourceMap: true })]
plugins: [
babel(babelrc({ config: babelConfig, exclude: 'node_modules/**' })),
uglify({ sourceMap: true })
]
},
{
input: "index-scale",
output: { file: "dist/scale.min.js", format: "umd", name: "g1", extend: true, sourcemap: true },
plugins: [process.env.npm_lifecycle_event == 'dev' ? '' : uglify({ sourceMap: true })],
plugins: [
babel(babelrc({ config: babelConfig, exclude: 'node_modules/**' })),
process.env.npm_lifecycle_event == 'dev' ? '' : uglify({ sourceMap: true })
]
},
{
input: "index-urlchange",
......
......@@ -90,7 +90,6 @@ function scale(data, config) {
.range(range)
return function (val) {
// console.log('val: ', val, metricFormula, metricFormula(val), result)
if (continous_scales.indexOf(config.scale) >= 0 && !Array.isArray(config.range)) {
return d3['interpolate' + config.scale.scheme](result(val))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment