@danielx/civet 0.6.25 → 0.6.26
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 +1 -0
- package/dist/babel-plugin.mjs +15 -0
- package/dist/browser.js +0 -2
- package/dist/main.js +0 -2
- package/dist/main.mjs +0 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,6 +17,7 @@ The modern way to write TypeScript.
|
|
|
17
17
|
- Plugins for
|
|
18
18
|
[esbuild](source/esbuild-plugin.civet),
|
|
19
19
|
[Vite](https://github.com/lorefnon/vite-plugin-civet),
|
|
20
|
+
[Babel](source/babel-plugin.mjs),
|
|
20
21
|
[Gulp](integrations/gulp),
|
|
21
22
|
[ESM module resolution](source/esm.civet),
|
|
22
23
|
[CJS](register.js),
|
package/dist/babel-plugin.mjs
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
// Babel plugin for compiling .civet files
|
|
2
|
+
|
|
3
|
+
/* Example babel.config.json:
|
|
4
|
+
|
|
5
|
+
{
|
|
6
|
+
"plugins": [
|
|
7
|
+
[
|
|
8
|
+
"@danielx/civet/babel-plugin"
|
|
9
|
+
]
|
|
10
|
+
],
|
|
11
|
+
"sourceMaps": "inline"
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
*/
|
|
15
|
+
|
|
1
16
|
import { compile } from "./main.mjs"
|
|
2
17
|
|
|
3
18
|
export default function (api, civetOptions) {
|
package/dist/browser.js
CHANGED
|
@@ -21324,8 +21324,6 @@ ${input.slice(result.pos)}
|
|
|
21324
21324
|
ts: true,
|
|
21325
21325
|
children: $0
|
|
21326
21326
|
};
|
|
21327
|
-
if (isConst)
|
|
21328
|
-
return ts;
|
|
21329
21327
|
const names = new Set(block.properties.map((p) => p.name.name));
|
|
21330
21328
|
return [
|
|
21331
21329
|
ts,
|
package/dist/main.js
CHANGED
|
@@ -21323,8 +21323,6 @@ ${input.slice(result.pos)}
|
|
|
21323
21323
|
ts: true,
|
|
21324
21324
|
children: $0
|
|
21325
21325
|
};
|
|
21326
|
-
if (isConst)
|
|
21327
|
-
return ts;
|
|
21328
21326
|
const names = new Set(block.properties.map((p) => p.name.name));
|
|
21329
21327
|
return [
|
|
21330
21328
|
ts,
|
package/dist/main.mjs
CHANGED
|
@@ -21321,8 +21321,6 @@ ${input.slice(result.pos)}
|
|
|
21321
21321
|
ts: true,
|
|
21322
21322
|
children: $0
|
|
21323
21323
|
};
|
|
21324
|
-
if (isConst)
|
|
21325
|
-
return ts;
|
|
21326
21324
|
const names = new Set(block.properties.map((p) => p.name.name));
|
|
21327
21325
|
return [
|
|
21328
21326
|
ts,
|