BREAKING CHANGE: The footer is now transpiled from es6 preserving modules. To use this package in a project it must now be transpiled by the requiring project via webpack or other configuration
36 lines
690 B
JavaScript
36 lines
690 B
JavaScript
// These preset packages are included by frontend-build.
|
|
// TODO: Add to frontend-build and leverage that config.
|
|
module.exports = {
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
modules: false,
|
|
},
|
|
],
|
|
'@babel/preset-react',
|
|
],
|
|
plugins: [
|
|
'@babel/plugin-proposal-object-rest-spread',
|
|
'@babel/plugin-proposal-class-properties',
|
|
],
|
|
env: {
|
|
i18n: {
|
|
plugins: [
|
|
[
|
|
'react-intl',
|
|
{
|
|
messagesDir: './temp/babel-plugin-react-intl',
|
|
moduleSourceName: '@edx/frontend-i18n',
|
|
},
|
|
],
|
|
],
|
|
},
|
|
test: {
|
|
presets: [
|
|
'@babel/preset-env',
|
|
],
|
|
},
|
|
},
|
|
};
|