dde272c4b8
CD - Docker - GHCR Images / Build and Push Images (push) Waiting to run
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
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: 3,
|
|
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;
|