mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
chore: monorepo setup (#7175)
This commit is contained in:
22
packages/rest/babel.config.js
Normal file
22
packages/rest/babel.config.js
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* @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 }],
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user