Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Build payment app with paragon treeshaking (#48)
Browse files Browse the repository at this point in the history
Also DRYing up our webpack configs.
  • Loading branch information
davidjoy authored Jul 3, 2019
1 parent 9ed5373 commit 2a1e28d
Show file tree
Hide file tree
Showing 8 changed files with 4,221 additions and 3,235 deletions.
41 changes: 0 additions & 41 deletions .babelrc

This file was deleted.

38 changes: 38 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/* eslint-disable */
module.exports = {
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: [
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-class-properties',
[
'transform-imports',
{
'@fortawesome/free-brands-svg-icons': {
transform: '@fortawesome/free-brands-svg-icons/${member}',
skipDefaultConversion: true,
},
'@fortawesome/free-regular-svg-icons': {
transform: '@fortawesome/free-regular-svg-icons/${member}',
skipDefaultConversion: true,
},
'@fortawesome/free-solid-svg-icons': {
transform: '@fortawesome/free-solid-svg-icons/${member}',
skipDefaultConversion: true,
},
},
],
],
env: {
i18n: {
plugins: [
[
'react-intl',
{
messagesDir: './temp/babel-plugin-react-intl',
moduleSourceName: '@edx/frontend-i18n',
},
],
],
},
},
};
Loading

0 comments on commit 2a1e28d

Please sign in to comment.