@compiled/parcel-transformer 0.11.1 → 0.11.3
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/dist/types.d.ts +7 -1
- package/package.json +9 -9
- package/src/types.ts +7 -0
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { PluginItem } from '@babel/core';
|
|
2
2
|
import type { PluginOptions } from '@compiled/babel-plugin';
|
|
3
3
|
import type { ResolveOptions } from 'enhanced-resolve';
|
|
4
|
-
|
|
4
|
+
type BabelPluginOpts = Omit<PluginOptions, 'cache' | 'onIncludedFiles' | 'resolver'>;
|
|
5
5
|
export interface ParcelTransformerOpts extends BabelPluginOpts {
|
|
6
6
|
extract?: boolean;
|
|
7
7
|
stylesheetPath?: string;
|
|
@@ -26,5 +26,11 @@ export interface ParcelTransformerOpts extends BabelPluginOpts {
|
|
|
26
26
|
* Override the default `resolve` used by @compiled/babel-plugin, which is used to statically evaluate import declarations
|
|
27
27
|
*/
|
|
28
28
|
resolve?: ResolveOptions;
|
|
29
|
+
/**
|
|
30
|
+
* Add the component name as class name to DOM in non-production environment if styled is used
|
|
31
|
+
*
|
|
32
|
+
* Default to `false`
|
|
33
|
+
*/
|
|
34
|
+
addComponentName?: boolean;
|
|
29
35
|
}
|
|
30
36
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compiled/parcel-transformer",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"description": "A familiar and performant compile time CSS-in-JS library for React.",
|
|
5
5
|
"homepage": "https://compiledcssinjs.com/docs/pkg-parcel-transformer",
|
|
6
6
|
"bugs": "https://github.com/atlassian-labs/compiled/issues/new?assignees=&labels=bug&template=bug_report.md",
|
|
@@ -20,21 +20,21 @@
|
|
|
20
20
|
"src"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@babel/core": "^7.
|
|
24
|
-
"@babel/generator": "^7.
|
|
25
|
-
"@compiled/babel-plugin": "^0.17.
|
|
26
|
-
"@compiled/babel-plugin-strip-runtime": "^0.17.
|
|
27
|
-
"@compiled/utils": "^0.6.
|
|
23
|
+
"@babel/core": "^7.20.12",
|
|
24
|
+
"@babel/generator": "^7.20.7",
|
|
25
|
+
"@compiled/babel-plugin": "^0.17.3",
|
|
26
|
+
"@compiled/babel-plugin-strip-runtime": "^0.17.3",
|
|
27
|
+
"@compiled/utils": "^0.6.17",
|
|
28
28
|
"@parcel/plugin": "^2.3.2",
|
|
29
29
|
"@parcel/source-map": "^2.0.2",
|
|
30
|
-
"enhanced-resolve": "^5.
|
|
30
|
+
"enhanced-resolve": "^5.12.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@parcel/core": "^2.3.1",
|
|
34
34
|
"@parcel/fs": "^2.3.1",
|
|
35
35
|
"@parcel/types": "^2.3.1",
|
|
36
|
-
"@types/babel__core": "^7.1.
|
|
37
|
-
"prettier": "^2.
|
|
36
|
+
"@types/babel__core": "^7.1.20",
|
|
37
|
+
"prettier": "^2.8.3"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"parcel": "^2.0.0"
|
package/src/types.ts
CHANGED
|
@@ -32,4 +32,11 @@ export interface ParcelTransformerOpts extends BabelPluginOpts {
|
|
|
32
32
|
* Override the default `resolve` used by @compiled/babel-plugin, which is used to statically evaluate import declarations
|
|
33
33
|
*/
|
|
34
34
|
resolve?: ResolveOptions;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Add the component name as class name to DOM in non-production environment if styled is used
|
|
38
|
+
*
|
|
39
|
+
* Default to `false`
|
|
40
|
+
*/
|
|
41
|
+
addComponentName?: boolean;
|
|
35
42
|
}
|