@commercetools-frontend/babel-preset-mc-app 27.4.1 → 27.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +17 -0
- package/CHANGELOG.md +4 -0
- package/CLAUDE.md +4 -0
- package/package.json +1 -1
package/AGENTS.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# babel-preset-mc-app
|
|
2
|
+
|
|
3
|
+
See root `AGENTS.md` for monorepo-wide context.
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
Babel preset providing the standard transform pipeline (env, React, TypeScript, Emotion, formatjs) for all Merchant Center Custom Applications and Custom Views.
|
|
8
|
+
|
|
9
|
+
## How To Work Here
|
|
10
|
+
|
|
11
|
+
Root commands apply. The single test file is `production.spec.js`.
|
|
12
|
+
|
|
13
|
+
## Gotchas
|
|
14
|
+
|
|
15
|
+
- This package is **excluded from preconstruct** — it ships plain JS files (`index.js`, `create.js`, `production.js`, `development.js`, `test.js`) that are consumed directly via `require()`. There is no build step and no `dist/` directory.
|
|
16
|
+
- The `create.js` file is the core logic — it branches on `NODE_ENV`/`BABEL_ENV` to return different preset/plugin configurations. Changes here affect every downstream build and test run.
|
|
17
|
+
- The `loose` mode flag on class-properties, private-methods, and private-property-in-object transforms must stay in sync — mismatched loose settings cause Babel compilation errors.
|
package/CHANGELOG.md
CHANGED
package/CLAUDE.md
ADDED
package/package.json
CHANGED