@danielx/civet 0.6.75 → 0.6.77
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/browser.js +3609 -3321
- package/dist/civet +4 -2
- package/dist/esbuild.js +1 -0
- package/dist/main.js +3609 -3321
- package/dist/main.mjs +3610 -3322
- package/dist/rollup.js +1 -0
- package/dist/unplugin-shared.mjs +1 -0
- package/dist/unplugin.js +1 -0
- package/dist/vite.js +1 -0
- package/dist/webpack.js +1 -0
- package/package.json +4 -1
package/dist/civet
CHANGED
|
@@ -340,11 +340,13 @@ async function cli() {
|
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
if (options.typecheck || options.emitDeclaration) {
|
|
343
|
-
|
|
343
|
+
const unpluginOptions = {
|
|
344
344
|
...options,
|
|
345
345
|
ts: options.js ? "civet" : "preserve",
|
|
346
346
|
outputExtension: ".tsx"
|
|
347
|
-
}
|
|
347
|
+
};
|
|
348
|
+
(unpluginOptions.parseOptions ??= {}).rewriteCivetImports = ".civet.tsx";
|
|
349
|
+
unplugin = (0, import_unplugin.rawPlugin)(unpluginOptions, { framework: "civet-cli" });
|
|
348
350
|
unplugin.buildStart();
|
|
349
351
|
}
|
|
350
352
|
if (options.run) {
|
package/dist/esbuild.js
CHANGED
|
@@ -128,6 +128,7 @@ var rawPlugin = (options = {}, meta) => {
|
|
|
128
128
|
...configContents.options,
|
|
129
129
|
target: ts.ScriptTarget.ESNext
|
|
130
130
|
};
|
|
131
|
+
compilerOptions.jsx ?? (compilerOptions.jsx = "preserve");
|
|
131
132
|
compilerOptionsWithSourceMap = {
|
|
132
133
|
...compilerOptions,
|
|
133
134
|
sourceMap: true
|