mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
23 lines
458 B
JavaScript
23 lines
458 B
JavaScript
/**
|
|
* @type {import('@babel/core').TransformOptions}
|
|
*/
|
|
module.exports = {
|
|
parserOpts: { strictMode: true },
|
|
sourceMaps: 'inline',
|
|
presets: [
|
|
[
|
|
'@babel/preset-env',
|
|
{
|
|
targets: { node: 'current' },
|
|
modules: 'commonjs',
|
|
},
|
|
],
|
|
'@babel/preset-typescript',
|
|
],
|
|
plugins: [
|
|
['const-enum', { transform: 'constObject' }],
|
|
'babel-plugin-transform-typescript-metadata',
|
|
['@babel/plugin-proposal-decorators', { legacy: true }],
|
|
],
|
|
};
|