mirror of
https://github.com/kikobar/mastodon.git
synced 2024-12-27 16:24:14 +00:00
db06b25376
* fix: update to emoji-mart 2.10.0 * remove useless change * fix CSS style of emoji picker, improve a11y * fix missing newline in scss * fix the title and input fonts
33 lines
808 B
JavaScript
33 lines
808 B
JavaScript
const { join } = require('path');
|
|
const { settings, env } = require('../configuration');
|
|
|
|
module.exports = {
|
|
test: /\.(js|mjs)$/,
|
|
include: /node_modules/,
|
|
exclude: /@babel(?:\/|\\{1,2})runtime/,
|
|
use: [
|
|
{
|
|
loader: 'babel-loader',
|
|
options: {
|
|
babelrc: false,
|
|
plugins: [
|
|
[
|
|
'transform-react-remove-prop-types',
|
|
{
|
|
mode: 'remove',
|
|
removeImport: true,
|
|
additionalLibraries: [
|
|
'../../utils/shared-props', // emoji-mart
|
|
],
|
|
},
|
|
],
|
|
],
|
|
cacheDirectory: join(settings.cache_path, 'babel-loader-node-modules'),
|
|
cacheCompression: env.NODE_ENV === 'production',
|
|
compact: false,
|
|
sourceMaps: false,
|
|
},
|
|
},
|
|
],
|
|
};
|