Skip to content

Commit

Permalink
Fixes to frontend-build update (#481)
Browse files Browse the repository at this point in the history
Use the prod config for prod
Add back code-js so that things still work in ie11
  • Loading branch information
Lael Birch authored Feb 22, 2021
1 parent 11c3bbc commit 5fd42d2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
19 changes: 15 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"algoliasearch": "4.8.3",
"axios-mock-adapter": "1.18.2",
"classnames": "2.2.6",
"core-js": "^3.7.0",
"faker": "4.1.0",
"file-saver": "1.3.8",
"font-awesome": "4.7.0",
Expand Down
1 change: 1 addition & 0 deletions src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'core-js/stable';
import 'regenerator-runtime/runtime';

import React from 'react';
Expand Down
2 changes: 1 addition & 1 deletion webpack.prod.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const { getBaseConfig } = require('@edx/frontend-build');
const webpack = require('webpack');

const config = getBaseConfig('webpack-dev');
const config = getBaseConfig('webpack-prod');

const modifiedConfig = {
...config,
Expand Down

0 comments on commit 5fd42d2

Please sign in to comment.