@danielx/civet 0.6.9 → 0.6.10

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielx/civet",
3
- "version": "0.6.9",
3
+ "version": "0.6.10",
4
4
  "description": "CoffeeScript style syntax for TypeScript",
5
5
  "main": "dist/main.js",
6
6
  "module": "dist/main.mjs",
@@ -1,24 +0,0 @@
1
- import { compile } from "./main.mjs"
2
-
3
- export default function (api, civetOptions) {
4
- return {
5
- parserOverride(code, opts, parse) {
6
- let src
7
- if (opts.sourceFileName.endsWith(".civet")) {
8
- const config = Object.assign({}, civetOptions, {
9
- filename: opts.sourceFileName,
10
- sourceMap: false,
11
- })
12
-
13
- config.inlineMap ??= true
14
- config.js = true
15
- src = compile(code, config)
16
- } else {
17
- src = code
18
- }
19
-
20
- const ast = parse(src, opts)
21
- return ast
22
- }
23
- }
24
- }
Binary file