@solidjs/babel-plugin 2.0.0-rc.2

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 ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@solidjs/babel-plugin",
3
+ "description": "Babel compiler plugin for Solid templates",
4
+ "version": "2.0.0-rc.2",
5
+ "author": "Ryan Carniato",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/solidjs/solid.git",
10
+ "directory": "packages/babel-plugin"
11
+ },
12
+ "main": "index.js",
13
+ "sideEffects": false,
14
+ "scripts": {
15
+ "build": "rollup -c --bundleConfigAsCjs",
16
+ "typecheck": "tsc -p tsconfig.json --noEmit",
17
+ "test": "pnpm run typecheck && pnpm run build && vitest run",
18
+ "test:coverage": "pnpm run typecheck && pnpm run build && vitest run --coverage",
19
+ "prepublishOnly": "pnpm run build",
20
+ "prepare": "pnpm run build"
21
+ },
22
+ "dependencies": {
23
+ "@babel/helper-module-imports": "7.18.6",
24
+ "@babel/plugin-syntax-jsx": "^7.18.6",
25
+ "@babel/types": "^7.20.7",
26
+ "html-entities": "2.3.3",
27
+ "parse5": "^7.1.2",
28
+ "validate-html-nesting": "^1.2.1"
29
+ },
30
+ "peerDependencies": {
31
+ "@babel/core": "^7.20.12"
32
+ },
33
+ "devDependencies": {
34
+ "@babel/core": "^7.29.0",
35
+ "@solidjs/web": "workspace:*",
36
+ "@rollup/plugin-babel": "7.0.0",
37
+ "@types/babel__core": "^7.20.5",
38
+ "@types/babel__traverse": "^7.28.0"
39
+ }
40
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "compilerOptions": {
3
+ "noEmit": true,
4
+ "target": "esnext",
5
+ "module": "esnext",
6
+ "moduleResolution": "bundler",
7
+ "skipLibCheck": true,
8
+ "allowSyntheticDefaultImports": true,
9
+ "strict": true
10
+ },
11
+ "include": ["src", "../web/src/constants.ts"]
12
+ }
@@ -0,0 +1,13 @@
1
+ /// <reference types="vitest" />
2
+
3
+ import { defineConfig } from "vitest/config";
4
+
5
+ export default defineConfig({
6
+ test: {
7
+ environment: "node",
8
+ pool: "threads",
9
+ globals: true,
10
+ include: ["test/**/*.spec.js"],
11
+ exclude: ["**/node_modules/**"]
12
+ }
13
+ });