@danielx/civet 0.5.59 → 0.5.60
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 +19 -0
- package/dist/browser.js +215 -139
- package/dist/main.js +215 -139
- package/dist/main.mjs +215 -139
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -227,6 +227,21 @@ Put them at the top of your file:
|
|
|
227
227
|
|
|
228
228
|
Your can separate multiple options with spaces.
|
|
229
229
|
|
|
230
|
+
Deno Compatibility
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
TypeScript only allows importing `.ts` files as `.js`. Deno follows ESM and requires importing files with the correct extension.
|
|
234
|
+
|
|
235
|
+
Civet automatically rewrites imports to work around [this issue](https://github.com/microsoft/TypeScript/issues/42151) in TS.
|
|
236
|
+
|
|
237
|
+
When Civet detects it is running in Deno rewriting imports is turned off. If for some reason Civet fails to detect running in Deno
|
|
238
|
+
you can turn off rewriting imports manually with these configuration options:
|
|
239
|
+
|
|
240
|
+
| Configuration | What it enables |
|
|
241
|
+
|-----------------------|------------------------------------------|
|
|
242
|
+
| -rewrite-ts-imports | disable rewriting .ts -> .js in imports |
|
|
243
|
+
| deno | currently just disables rewriting imports but could add more deno specific options in the future |
|
|
244
|
+
|
|
230
245
|
Other Options
|
|
231
246
|
---
|
|
232
247
|
|
|
@@ -381,3 +396,7 @@ codebases that would benefit from added types. Others have massive TypeScript ap
|
|
|
381
396
|
new language features and shorthand syntax. Civet provides a way to get the benefits bit by bit without a complete
|
|
382
397
|
rewrite. This same configurability lets us experiment with language features to gain experience and improve them before
|
|
383
398
|
locking them in. It also allows us to adapt to a changing future.
|
|
399
|
+
|
|
400
|
+
Sponsorship
|
|
401
|
+
---
|
|
402
|
+
If you are so inclined, you can sponsor Civet on [Open Collective](https://opencollective.com/civet).
|