rollup-plugin-solid-styled 0.7.3 → 0.7.5

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 CHANGED
@@ -28,8 +28,8 @@ solidStyled({
28
28
  verbose: true, // defaults to false
29
29
  prefix: 'my-prefix', // optional
30
30
  filter: {
31
- include: 'src/**/*.ts',
32
- exclude: 'node_modules/**/*.{ts,js}',
31
+ include: 'src/**/*.{ts,js,tsx,jsx}',
32
+ exclude: 'node_modules/**/*.{ts,js,tsx,jsx}',
33
33
  },
34
34
  })
35
35
  ```
@@ -35,6 +35,10 @@ var __copyProps = (to, from, except, desc) => {
35
35
  return to;
36
36
  };
37
37
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
38
+ // If the importer is in node compatibility mode or this is not an ESM
39
+ // file that has been converted to a CommonJS file using a Babel-
40
+ // compatible transform (i.e. "__esModule" has not been set), then set
41
+ // "default" to the CommonJS "module.exports" for node compatibility.
38
42
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
39
43
  mod
40
44
  ));
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/index.ts"],
4
4
  "sourcesContent": ["import solidStyledBabel from 'solid-styled/babel';\nimport { Plugin } from 'rollup';\nimport { createFilter, FilterPattern } from '@rollup/pluginutils';\nimport * as babel from '@babel/core';\nimport path from 'path';\nimport ts from '@babel/preset-typescript';\n\nexport interface SolidStyledPluginFilter {\n include?: FilterPattern;\n exclude?: FilterPattern;\n}\n\nexport interface SolidStyledPluginOptions {\n verbose?: boolean;\n prefix?: string;\n filter?: SolidStyledPluginFilter;\n babel?: babel.TransformOptions;\n}\n\nexport default function solidStyledPlugin(\n options: SolidStyledPluginOptions = {},\n): Plugin {\n const filter = createFilter(\n options.filter?.include,\n options.filter?.exclude,\n );\n return {\n name: 'solid-styled',\n async transform(code, id) {\n if (filter(id)) {\n const result = await babel.transformAsync(code, {\n ...options.babel,\n presets: [\n [ts],\n ...(options.babel?.presets ?? []),\n ],\n plugins: [\n [solidStyledBabel, {\n verbose: options.verbose,\n prefix: options.prefix,\n source: id,\n }],\n ...(options.babel?.plugins ?? []),\n ],\n filename: path.basename(id),\n });\n\n if (result) {\n return {\n code: result.code ?? '',\n map: result.map,\n };\n }\n }\n return undefined;\n },\n };\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA6B;AAE7B,yBAA4C;AAC5C,YAAuB;AACvB,kBAAiB;AACjB,+BAAe;AAcA,SAAR,kBACL,UAAoC,CAAC,GAC7B;AArBV;AAsBE,QAAM,aAAS;AAAA,KACb,aAAQ,WAAR,mBAAgB;AAAA,KAChB,aAAQ,WAAR,mBAAgB;AAAA,EAClB;AACA,SAAO;AAAA,IACL,MAAM;AAAA,IACN,MAAM,UAAU,MAAM,IAAI;AA5B9B,UAAAA,KAAAC,KAAA;AA6BM,UAAI,OAAO,EAAE,GAAG;AACd,cAAM,SAAS,MAAY,qBAAe,MAAM,iCAC3C,QAAQ,QADmC;AAAA,UAE9C,SAAS;AAAA,YACP,CAAC,yBAAAC,OAAE;AAAA,YACH,IAAID,OAAAD,MAAA,QAAQ,UAAR,gBAAAA,IAAe,YAAf,OAAAC,MAA0B,CAAC;AAAA,UACjC;AAAA,UACA,SAAS;AAAA,YACP,CAAC,aAAAE,SAAkB;AAAA,cACjB,SAAS,QAAQ;AAAA,cACjB,QAAQ,QAAQ;AAAA,cAChB,QAAQ;AAAA,YACV,CAAC;AAAA,YACD,IAAI,mBAAQ,UAAR,mBAAe,YAAf,YAA0B,CAAC;AAAA,UACjC;AAAA,UACA,UAAU,YAAAC,QAAK,SAAS,EAAE;AAAA,QAC5B,EAAC;AAED,YAAI,QAAQ;AACV,iBAAO;AAAA,YACL,OAAM,YAAO,SAAP,YAAe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@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup-plugin-solid-styled",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -15,21 +15,20 @@
15
15
  "pridepack"
16
16
  ],
17
17
  "devDependencies": {
18
- "@types/babel__core": "^7.1.19",
19
- "@types/node": "^18.11.0",
20
- "eslint": "^8.25.0",
18
+ "@types/babel__core": "^7.20.0",
19
+ "@types/node": "^18.11.18",
20
+ "eslint": "^8.32.0",
21
21
  "eslint-config-lxsmnsyc": "^0.4.8",
22
- "pridepack": "2.3.0",
23
- "rollup": "^3.2.3",
24
- "solid-styled": "0.7.3",
25
- "tslib": "^2.4.0",
26
- "typescript": "^4.8.4",
27
- "vitest": "^0.24.3"
22
+ "pridepack": "2.4.0",
23
+ "rollup": "^3.5.1",
24
+ "solid-styled": "0.7.5",
25
+ "tslib": "^2.4.1",
26
+ "typescript": "^4.9.4"
28
27
  },
29
28
  "dependencies": {
30
- "@babel/core": "^7.19.3",
29
+ "@babel/core": "^7.20.12",
31
30
  "@babel/preset-typescript": "^7.18.6",
32
- "@rollup/pluginutils": "^5.0.1"
31
+ "@rollup/pluginutils": "^5.0.2"
33
32
  },
34
33
  "peerDependencies": {
35
34
  "rollup": "^3",
@@ -46,14 +45,14 @@
46
45
  "dev": "pridepack dev",
47
46
  "test": "vitest"
48
47
  },
49
- "description": "Compile-time reactivity for JS",
48
+ "description": "Rollup plugin for solid-styled",
50
49
  "repository": {
51
- "url": "https://github.com/lxsmnsyc/silmaril.git",
50
+ "url": "https://github.com/lxsmnsyc/solid-styled.git",
52
51
  "type": "git"
53
52
  },
54
- "homepage": "https://github.com/lxsmnsyc/silmaril/packages/rollup",
53
+ "homepage": "https://github.com/lxsmnsyc/solid-styled/packages/rollup",
55
54
  "bugs": {
56
- "url": "https://github.com/lxsmnsyc/silmaril/issues"
55
+ "url": "https://github.com/lxsmnsyc/solid-styled/issues"
57
56
  },
58
57
  "publishConfig": {
59
58
  "access": "public"
@@ -77,5 +76,5 @@
77
76
  "typesVersions": {
78
77
  "*": {}
79
78
  },
80
- "gitHead": "01d04b55eb40c625c022aeb7fc4680d8137f99e9"
79
+ "gitHead": "87aae564ee04b15ece4911925dae57df246aebbd"
81
80
  }