mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 10:07:46 -05:00
72 lines
1.3 KiB
JavaScript
72 lines
1.3 KiB
JavaScript
/* eslint-disable filenames-simple/naming-convention */
|
|
require('dotenv').config({ path: '../.env' });
|
|
const config = {
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
loose: true,
|
|
modules: false,
|
|
useBuiltIns: 'usage',
|
|
corejs: 2,
|
|
shippedProposals: true,
|
|
targets: {
|
|
browsers: ['>0.25%', 'not dead']
|
|
}
|
|
}
|
|
],
|
|
[
|
|
'@babel/preset-react',
|
|
{
|
|
useBuiltIns: true,
|
|
pragma: 'React.createElement'
|
|
}
|
|
],
|
|
'@babel/preset-typescript'
|
|
],
|
|
plugins: [
|
|
'preval',
|
|
'@babel/plugin-syntax-dynamic-import',
|
|
'babel-plugin-macros',
|
|
[
|
|
'@babel/plugin-transform-runtime',
|
|
{
|
|
helpers: true,
|
|
regenerator: true
|
|
}
|
|
],
|
|
[
|
|
'prismjs',
|
|
{
|
|
languages: [
|
|
'bash',
|
|
'c',
|
|
'clike',
|
|
'cpp',
|
|
'css',
|
|
'csharp',
|
|
'html',
|
|
'javascript',
|
|
'json',
|
|
'jsx',
|
|
'markup',
|
|
'mathml',
|
|
'pug',
|
|
'python',
|
|
'scss',
|
|
'sass',
|
|
'sql',
|
|
'svg',
|
|
'typescript',
|
|
'tsx',
|
|
'xml'
|
|
],
|
|
theme: 'default',
|
|
css: true,
|
|
plugins: ['line-numbers']
|
|
}
|
|
]
|
|
]
|
|
};
|
|
module.exports = config;
|