@powerlines/plugin-react 0.1.88 → 0.1.89
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require(`../../_virtual/rolldown_runtime.cjs`),t=require(`./transpile.cjs`);let n=require(`@stryke/type-checks`),r=require(`typescript`);const i=e=>({name:`powerlines:deepkit`,setup(
|
|
2
|
-
`)}`;throw e.error(t),Error(t)}else o.diagnostics.some(e=>e.category===r.DiagnosticCategory.Warning)?e.warn(`Deepkit Type reflection transpilation warnings
|
|
3
|
-
`)}`):e.debug(`Deepkit Type reflection transpilation
|
|
1
|
+
const e=require(`../../_virtual/rolldown_runtime.cjs`),t=require(`./transpile.cjs`);let n=require(`@stryke/type-checks`),r=require(`typescript`);const i=(e,i={})=>({name:`powerlines:deepkit`,setup(a){a.onLoad({filter:/\.(m|c)?tsx?$/,...i},async i=>{let a=await e.fs.read(i.path);if(!a)return null;if(i.pluginData?.isReflected)return{contents:a,loader:`ts`,pluginData:{isReflected:!0}};let o=t.transpile(e,a,i.path);if(o.diagnostics&&o.diagnostics.length>0)if(o.diagnostics.some(e=>e.category===r.DiagnosticCategory.Error)){let t=`Deepkit Type reflection transpilation errors: ${i.path} \n ${o.diagnostics.filter(e=>e.category===r.DiagnosticCategory.Error).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${(0,n.isString)(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
|
|
2
|
+
`)}`;throw e.error(t),Error(t)}else o.diagnostics.some(e=>e.category===r.DiagnosticCategory.Warning)?e.warn(`Deepkit Type reflection transpilation warnings: ${i.path} \n ${o.diagnostics.filter(e=>e.category===r.DiagnosticCategory.Warning).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${(0,n.isString)(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
|
|
3
|
+
`)}`):e.debug(`Deepkit Type reflection transpilation diagnostics: ${i.path} \n ${o.diagnostics.map(e=>`-${e.file?`${e.file.fileName}:`:``} ${(0,n.isString)(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
|
|
4
4
|
`)}`);return{contents:o.outputText,loader:`ts`,pluginData:{isReflected:!0}}})}});exports.esbuildPlugin=i;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{transpile as e}from"./transpile.mjs";import{isString as t}from"@stryke/type-checks";import{DiagnosticCategory as n}from"typescript";const r=r=>({name:`powerlines:deepkit`,setup(
|
|
2
|
-
`)}`;throw r.error(e),Error(e)}else o.diagnostics.some(e=>e.category===n.Warning)?r.warn(`Deepkit Type reflection transpilation warnings
|
|
3
|
-
`)}`):r.debug(`Deepkit Type reflection transpilation
|
|
1
|
+
import{transpile as e}from"./transpile.mjs";import{isString as t}from"@stryke/type-checks";import{DiagnosticCategory as n}from"typescript";const r=(r,i={})=>({name:`powerlines:deepkit`,setup(a){a.onLoad({filter:/\.(m|c)?tsx?$/,...i},async i=>{let a=await r.fs.read(i.path);if(!a)return null;if(i.pluginData?.isReflected)return{contents:a,loader:`ts`,pluginData:{isReflected:!0}};let o=e(r,a,i.path);if(o.diagnostics&&o.diagnostics.length>0)if(o.diagnostics.some(e=>e.category===n.Error)){let e=`Deepkit Type reflection transpilation errors: ${i.path} \n ${o.diagnostics.filter(e=>e.category===n.Error).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${t(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
|
|
2
|
+
`)}`;throw r.error(e),Error(e)}else o.diagnostics.some(e=>e.category===n.Warning)?r.warn(`Deepkit Type reflection transpilation warnings: ${i.path} \n ${o.diagnostics.filter(e=>e.category===n.Warning).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${t(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
|
|
3
|
+
`)}`):r.debug(`Deepkit Type reflection transpilation diagnostics: ${i.path} \n ${o.diagnostics.map(e=>`-${e.file?`${e.file.fileName}:`:``} ${t(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
|
|
4
4
|
`)}`);return{contents:o.outputText,loader:`ts`,pluginData:{isReflected:!0}}})}});export{r as esbuildPlugin};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.89",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for building a React application.",
|
|
6
6
|
"repository": {
|
|
@@ -142,18 +142,18 @@
|
|
|
142
142
|
"@stryke/fs": "^0.33.26",
|
|
143
143
|
"@stryke/path": "^0.23.2",
|
|
144
144
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
145
|
-
"@powerlines/alloy": "^0.11.
|
|
146
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
147
|
-
"@powerlines/plugin-env": "^0.13.
|
|
148
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
145
|
+
"@powerlines/alloy": "^0.11.98",
|
|
146
|
+
"@powerlines/plugin-babel": "^0.12.98",
|
|
147
|
+
"@powerlines/plugin-env": "^0.13.95",
|
|
148
|
+
"@powerlines/plugin-plugin": "^0.12.41",
|
|
149
149
|
"@vitejs/plugin-react": "^5.1.2",
|
|
150
150
|
"defu": "^6.1.4",
|
|
151
|
-
"powerlines": "^0.34.
|
|
151
|
+
"powerlines": "^0.34.7"
|
|
152
152
|
},
|
|
153
153
|
"devDependencies": {
|
|
154
|
-
"@powerlines/nx": "^0.11.
|
|
154
|
+
"@powerlines/nx": "^0.11.20",
|
|
155
155
|
"@types/node": "^24.10.4"
|
|
156
156
|
},
|
|
157
157
|
"publishConfig": { "access": "public" },
|
|
158
|
-
"gitHead": "
|
|
158
|
+
"gitHead": "ce53873ef91c416e50f703124ef7618935bff016"
|
|
159
159
|
}
|