mattermost-plugin-shelfmark/webapp/babel.config.js
Felipe M. 5ae3d9e272
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Add webapp boilerplate from starter template and switch build to bun
Restore the webapp directory from the mattermost-plugin-starter-template
to enable frontend development. Replace all npm/NPM references with bun
across the Makefile, build/setup.mk, and golangci-lint config. Add the
webapp bundle_path back to plugin.json.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 09:28:10 +01:00

42 lines
1,002 B
JavaScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
const config = {
presets: [
['@babel/preset-env', {
targets: {
chrome: 66,
firefox: 60,
edge: 42,
safari: 12,
},
modules: false,
corejs: 3,
debug: false,
useBuiltIns: 'usage',
shippedProposals: true,
}],
['@babel/preset-react', {
useBuiltIns: true,
}],
['@babel/typescript', {
allExtensions: true,
isTSX: true,
}],
['@emotion/babel-preset-css-prop'],
],
plugins: [
'babel-plugin-typescript-to-proptypes',
],
};
// Jest needs module transformation
config.env = {
test: {
presets: config.presets,
plugins: config.plugins,
},
};
config.env.test.presets[0][1].modules = 'auto';
module.exports = config;