mirror of
https://github.com/home-assistant/frontend.git
synced 2025-06-20 17:16:35 +00:00

* WIP * remove big calendar * remove file * Convert to lit * More * Ready for the public to see? prob not * Fix types and imports * Remove dependencies * ignore the typing that hasnt been finished in Beta * Convert paper to MWC * Styling * View list as name of view | MWC components version * Updates action directive for ripple. MWC 14.1.0 * Update * Updates * Update height styling * Toggle Button Group * Adds Toggle group transition * style updates * Few fixes * Fix Yarn lock from merge | height of celndar as parent * Update package Json and yarn | remove unneeded pkg * Remove mwc-list * Search hass.states for calendars instead of api * Move function to file in data | event fetch logic * compute state name * add ha button menu | refresh * Remove Event ffetch logic * copy pasta * Types * Fix for toggling * Translations * Update ha-button-toggle-group * Update ha-button-toggle-group.ts * Update ha-button-toggle-group.ts * Change mobile view * Locale in fullcalendar * Comments * ha-button-menu trigger slot * Comments * icon-x * Update src/panels/calendar/ha-panel-calendar.ts Co-authored-by: Bram Kragten <mail@bramkragten.nl> * Update src/panels/calendar/ha-panel-calendar.ts Co-authored-by: Bram Kragten <mail@bramkragten.nl>
45 lines
1.3 KiB
JavaScript
45 lines
1.3 KiB
JavaScript
module.exports.babelLoaderConfig = ({ latestBuild }) => {
|
|
if (latestBuild === undefined) {
|
|
throw Error("latestBuild not defined for babel loader config");
|
|
}
|
|
return {
|
|
test: /\.m?js$|\.tsx?$/,
|
|
use: {
|
|
loader: "babel-loader",
|
|
options: {
|
|
presets: [
|
|
!latestBuild && [
|
|
require("@babel/preset-env").default,
|
|
{ modules: false },
|
|
],
|
|
[
|
|
require("@babel/preset-typescript").default,
|
|
{
|
|
jsxPragma: "h",
|
|
},
|
|
],
|
|
].filter(Boolean),
|
|
plugins: [
|
|
// Part of ES2018. Converts {...a, b: 2} to Object.assign({}, a, {b: 2})
|
|
[
|
|
"@babel/plugin-proposal-object-rest-spread",
|
|
{ loose: true, useBuiltIns: true },
|
|
],
|
|
// Only support the syntax, Webpack will handle it.
|
|
"@babel/syntax-dynamic-import",
|
|
"@babel/plugin-proposal-optional-chaining",
|
|
"@babel/plugin-proposal-nullish-coalescing-operator",
|
|
[
|
|
require("@babel/plugin-proposal-decorators").default,
|
|
{ decoratorsBeforeExport: true },
|
|
],
|
|
[
|
|
require("@babel/plugin-proposal-class-properties").default,
|
|
{ loose: true },
|
|
],
|
|
],
|
|
},
|
|
},
|
|
};
|
|
};
|