@usemotif/compiler-metro 1.1.4 → 1.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usemotif/compiler-metro",
3
- "version": "1.1.4",
3
+ "version": "1.2.0",
4
4
  "description": "Metro transformer for motif-js static style extraction in React Native.",
5
5
  "homepage": "https://github.com/foo-stack/usemotif/tree/main/packages/compiler-metro#readme",
6
6
  "bugs": "https://github.com/foo-stack/usemotif/issues",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@babel/core": "^7.29.0",
40
- "@usemotif/compiler-babel": "1.1.4"
40
+ "@usemotif/compiler-babel": "1.2.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/babel__core": "^7.20.5",
package/src/index.test.ts CHANGED
@@ -32,6 +32,11 @@ describe('@usemotif/compiler-metro', () => {
32
32
  expect(code).toMatch(/style=\{_motifStyles\.id\d+\}/);
33
33
  });
34
34
 
35
+ it('forwards the breakpoints override to the babel plugin options', () => {
36
+ const tuple = motifMetro({ breakpoints: { md: 800 } });
37
+ expect(tuple[1]).toMatchObject({ target: 'native', breakpoints: { md: 800 } });
38
+ });
39
+
35
40
  it('respects target override', () => {
36
41
  const tuple = motifMetro({ target: 'web' });
37
42
  const result = transformSync(