Merge pull request #10981 from overleaf/ae-chart-js-babel

Add chart.js to babel-loader config

GitOrigin-RevId: 86b0f37bb10e3018769473ccdcae032123ba78cb
This commit is contained in:
Mathias Jakobsen 2022-12-22 11:13:26 +01:00 committed by Copybot
parent 7ed9b04c3c
commit 4175d62800

View file

@ -95,7 +95,7 @@ module.exports = {
test: /\.[jt]sx?$/,
// Only compile application files (npm and vendored dependencies are in
// ES5 already)
exclude: [/node_modules\/(?!react-dnd\/)/, vendorDir],
exclude: [/node_modules\/(?!(react-dnd|chart\.js)\/)/, vendorDir],
use: [
{
loader: 'babel-loader',