Skip to content

Commit

Permalink
chore(deps): lock file maintenance (#3695)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] committed May 4, 2020
1 parent 6c229c5 commit 628eee4
Show file tree
Hide file tree
Showing 4 changed files with 657 additions and 581 deletions.
3 changes: 3 additions & 0 deletions scripts/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ const baseConfig = ({ target = isProduction ? 'umd' : 'umddir' } = {}) => ({
},
resolve: {
extensions: ['.ts', '.tsx', '.js', '.json'],
alias: {
moment$: 'moment/moment.js',
},
},
plugins: Object.values(plugins()).map(plugin => plugin()),
devtool: isTest ? '' : 'source-map',
Expand Down
11 changes: 11 additions & 0 deletions website/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,14 @@ exports.onCreateNode = ({ node, actions, getNode }) => {
});
}
};

exports.onCreateWebpackConfig = ({ actions }) => {
actions.setWebpackConfig({
resolve: {
extensions: ['.ts', '.tsx', '.js', '.json'],
alias: {
moment$: 'moment/moment.js',
},
},
});
};
Loading

0 comments on commit 628eee4

Please sign in to comment.