@stylexjs/babel-plugin 0.2.0-beta.9 → 0.3.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/README.md +1 -1
- package/flow_modules/@babel/core/index.js.flow +854 -0
- package/flow_modules/@babel/generator/index.js.flow +216 -0
- package/flow_modules/@babel/parser/index.js.flow +253 -0
- package/flow_modules/@babel/traverse/index.js.flow +1002 -0
- package/flow_modules/@babel/types/index.js.flow +5224 -0
- package/lib/babel-path-utils.d.ts +1100 -0
- package/lib/babel-path-utils.js.flow +1108 -0
- package/lib/index.d.ts +33 -0
- package/lib/index.js +3824 -2584
- package/lib/index.js.flow +34 -0
- package/lib/utils/dev-classname.d.ts +26 -0
- package/lib/utils/dev-classname.js.flow +31 -0
- package/lib/utils/evaluate-path.d.ts +29 -0
- package/lib/utils/evaluate-path.js.flow +37 -0
- package/lib/utils/helpers.d.ts +12 -0
- package/lib/utils/helpers.js.flow +10 -0
- package/lib/utils/js-to-ast.d.ts +23 -0
- package/lib/utils/js-to-ast.js.flow +25 -0
- package/lib/utils/state-manager.d.ts +73 -0
- package/lib/utils/state-manager.js.flow +76 -0
- package/lib/visitors/imports.d.ts +20 -0
- package/lib/visitors/imports.js.flow +24 -0
- package/lib/visitors/stylex-create/index.d.ts +17 -0
- package/lib/visitors/stylex-create/index.js.flow +24 -0
- package/lib/visitors/stylex-create/parse-stylex-create-arg.d.ts +28 -0
- package/lib/visitors/stylex-create/parse-stylex-create-arg.js.flow +30 -0
- package/lib/visitors/stylex-create-theme.d.ts +17 -0
- package/lib/visitors/stylex-create-theme.js.flow +23 -0
- package/lib/visitors/stylex-define-vars.d.ts +17 -0
- package/lib/visitors/stylex-define-vars.js.flow +23 -0
- package/lib/visitors/stylex-keyframes.d.ts +17 -0
- package/lib/visitors/stylex-keyframes.js.flow +23 -0
- package/lib/visitors/stylex-merge.d.ts +21 -0
- package/lib/visitors/stylex-merge.js.flow +25 -0
- package/lib/visitors/stylex-override-vars.d.ts +17 -0
- package/lib/visitors/stylex-override-vars.js.flow +23 -0
- package/lib/visitors/stylex-props.d.ts +21 -0
- package/lib/visitors/stylex-props.js.flow +25 -0
- package/package.json +12 -7
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ by passing them to the functions of the corresponding names within `@stylex/shar
|
|
|
14
14
|
|
|
15
15
|
## Babel Metadata
|
|
16
16
|
|
|
17
|
-
The StyleX Babel plugin does more than transform
|
|
17
|
+
The StyleX Babel plugin does more than transform JavaScript (or Typescript) files. It also returns a list of injected styles. The way that such a value can be returned while transforming a JS file is by using Babel's `metadata` API.
|
|
18
18
|
|
|
19
19
|
An example of this can be seen in some of the tests, but the result of using Babel's `transform(...)` function returns an object contains at least two keys:
|
|
20
20
|
|