@danielx/civet 0.4.38 → 0.5.1
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 +65 -61
- package/dist/browser.js +524 -179
- package/dist/esm.mjs +1 -1
- package/dist/main.js +524 -179
- package/package.json +1 -1
- package/register.mjs +1 -1
package/package.json
CHANGED
package/register.mjs
CHANGED
|
@@ -31,7 +31,7 @@ export async function load(url, context, next) {
|
|
|
31
31
|
|
|
32
32
|
// NOTE: Assuming ts-node hook follows load hook
|
|
33
33
|
// NOTE: This causes .civet files to show up as .ts in ts-node error reporting (TODO: May be able to add a sourcemapping)
|
|
34
|
-
const result = await next(url.replace(extensionsRegex, ".
|
|
34
|
+
const result = await next(url.replace(extensionsRegex, ".tsx"), {
|
|
35
35
|
// ts-node won't transpile unless this is module
|
|
36
36
|
// can't use commonjs since we don't rewrite imports
|
|
37
37
|
format: "module",
|