|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
1021 bytes
|
| Line | |
|---|
| 1 | import path from "path";
|
|---|
| 2 | import { declare } from "@babel/helper-plugin-utils";
|
|---|
| 3 |
|
|---|
| 4 | /**
|
|---|
| 5 | * @babel/preset-modules produces clean, minimal output for ES Modules-supporting browsers.
|
|---|
| 6 | * @param {Object} [options]
|
|---|
| 7 | * @param {boolean} [options.loose=false] Loose mode skips seldom-needed transforms that increase output size.
|
|---|
| 8 | */
|
|---|
| 9 | export default declare((api, opts) => {
|
|---|
| 10 | api.assertVersion(7);
|
|---|
| 11 |
|
|---|
| 12 | const loose = opts.loose === true;
|
|---|
| 13 |
|
|---|
| 14 | return {
|
|---|
| 15 | plugins: [
|
|---|
| 16 | path.resolve(__dirname, "./plugins/transform-edge-default-parameters"),
|
|---|
| 17 | path.resolve(__dirname, "./plugins/transform-tagged-template-caching"),
|
|---|
| 18 | path.resolve(__dirname, "./plugins/transform-jsx-spread"),
|
|---|
| 19 | path.resolve(__dirname, "./plugins/transform-safari-for-shadowing"),
|
|---|
| 20 | path.resolve(__dirname, "./plugins/transform-safari-block-shadowing"),
|
|---|
| 21 | path.resolve(__dirname, "./plugins/transform-async-arrows-in-class"),
|
|---|
| 22 | !loose &&
|
|---|
| 23 | path.resolve(__dirname, "./plugins/transform-edge-function-name"),
|
|---|
| 24 | ].filter(Boolean),
|
|---|
| 25 | };
|
|---|
| 26 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.