Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Babel Polyfill Loaded Twice #230

Open
heathharrelson opened this issue Oct 2, 2020 · 0 comments
Open

Babel Polyfill Loaded Twice #230

heathharrelson opened this issue Oct 2, 2020 · 0 comments

Comments

@heathharrelson
Copy link
Member

As shown in #228, a warning is logged to the console about loading the Babel polyfill twice when Vizr is loaded.

babel-polyfill-warning

REDCap is now bundling JavaScript resources using Webpack, and they are loading the polyfill as well:

// from Resources/webpack/webpack.config.js
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');

module.exports = {
  entry: {
    main: ["babel-polyfill", './src/app.js']
  },
  // ...
}

We should either use the noconflict polyfill as mentioned in the warning or reconfigure Babel not to apply the polyfill at all. Note that the latter will require bumping the minimum supported REDCap version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant