Skip to content
Snippets Groups Projects
Unverified Commit 67f152f3 authored by Tom Robinson's avatar Tom Robinson
Browse files

Upgrade some frontend deps, fixing const issue. Simplify webpack.config.js. [ci all]

parent 3697f9e3
No related branches found
No related tags found
No related merge requests found
import React, { Component } from "react";
import PropTypes from "prop-types";
import Icon from "metabase/components/Icon";
import { capitalize } from 'humanize'
import { capitalize } from "humanize-plus"
const propTypes = {
provider: PropTypes.string.isRequired
......
import d3 from "d3";
import inflection from "inflection";
import moment from "moment";
import Humanize from "humanize";
import Humanize from "humanize-plus";
import React from "react";
import ExternalLink from "metabase/components/ExternalLink.jsx";
......
import React, { Component } from "react";
import Humanize from 'humanize';
import Humanize from "humanize-plus";
export default class ExpandableString extends Component {
constructor(props, context) {
......
......@@ -117,9 +117,6 @@ var config = module.exports = {
test: /\.css$/,
loader: ExtractTextPlugin.extract("style-loader", "css-loader?" + JSON.stringify(CSS_CONFIG) + "!postcss-loader")
}
],
noParse: [
/node_modules\/(ace|moment|underscore)/ // doesn't include 'crossfilter', 'dc', and 'tether' due to use of 'require'
]
},
......@@ -128,17 +125,7 @@ var config = module.exports = {
alias: {
'metabase': SRC_PATH,
'style': SRC_PATH + '/css/core/index.css',
'ace': __dirname + '/node_modules/ace-builds/src-min-noconflict',
// misc
'moment': __dirname + '/node_modules/moment/min/moment.min.js',
'tether': __dirname + '/node_modules/tether/dist/js/tether.min.js',
'underscore': __dirname + '/node_modules/underscore/underscore-min.js',
'd3': __dirname + '/node_modules/d3/d3.min.js',
'crossfilter': __dirname + '/node_modules/crossfilter/index.js',
'dc': __dirname + '/node_modules/dc/dc.min.js',
'humanize': __dirname + '/node_modules/humanize-plus/dist/humanize.min.js'
}
},
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment