rollup-plugin-solid-styled 0.7.4 → 0.8.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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- MIT License Copyright (c) 2022 <author>
1
+ MIT License Copyright (c) 2023 Alexis Munsayac
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
4
 
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,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AAAC,QAAK,SAAS,EAAE;AAAA,QAC5B,EAAC;AAED,YAAI,QAAQ;AACV,iBAAO;AAAA,YACL,OAAM,YAAO,SAAP,YAAe;AAAA,YACrB,KAAK,OAAO;AAAA,UACd;AAAA,QACF;AAAA,MACF;AACA,aAAO;AAAA,IACT;AAAA,EACF;AACF;",
6
6
  "names": ["_a", "_b", "ts", "solidStyledBabel", "path"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollup-plugin-solid-styled",
3
- "version": "0.7.4",
3
+ "version": "0.8.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -15,19 +15,18 @@
15
15
  "pridepack"
16
16
  ],
17
17
  "devDependencies": {
18
- "@types/babel__core": "^7.1.20",
19
- "@types/node": "^18.11.10",
20
- "eslint": "^8.27.0",
18
+ "@types/babel__core": "^7.20.0",
19
+ "@types/node": "^18.13.0",
20
+ "eslint": "^8.33.0",
21
21
  "eslint-config-lxsmnsyc": "^0.4.8",
22
- "pridepack": "2.3.0",
22
+ "pridepack": "2.4.0",
23
23
  "rollup": "^3.5.1",
24
- "solid-styled": "0.7.4",
25
- "tslib": "^2.4.1",
26
- "typescript": "^4.9.3",
27
- "vitest": "^0.25.3"
24
+ "solid-styled": "0.8.0",
25
+ "tslib": "^2.5.0",
26
+ "typescript": "^4.9.5"
28
27
  },
29
28
  "dependencies": {
30
- "@babel/core": "^7.20.5",
29
+ "@babel/core": "^7.20.12",
31
30
  "@babel/preset-typescript": "^7.18.6",
32
31
  "@rollup/pluginutils": "^5.0.2"
33
32
  },
@@ -46,7 +45,7 @@
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
50
  "url": "https://github.com/lxsmnsyc/solid-styled.git",
52
51
  "type": "git"
@@ -77,5 +76,5 @@
77
76
  "typesVersions": {
78
77
  "*": {}
79
78
  },
80
- "gitHead": "7d139722b9c635d02eb681338c2b4a01f8050811"
79
+ "gitHead": "e660e48fb004b94cf5c99f2bc72107d88ac787a4"
81
80
  }