@danielx/civet 0.4.6 → 0.4.7
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 +28 -17
- package/dist/browser.js +398 -134
- package/dist/esm.mjs +2 -2
- package/dist/main.js +398 -134
- package/package.json +1 -1
package/dist/esm.mjs
CHANGED
|
@@ -47,7 +47,7 @@ const ensureRegister = function() {
|
|
|
47
47
|
if (path.startsWith('file://')) {
|
|
48
48
|
try {
|
|
49
49
|
path = fileURLToPath(path);
|
|
50
|
-
} catch {};
|
|
50
|
+
} catch(e) {};
|
|
51
51
|
};
|
|
52
52
|
path = normalizeSlashes(path);
|
|
53
53
|
|
|
@@ -122,5 +122,5 @@ require.extensions[".civet"] = function(m, filename) {
|
|
|
122
122
|
});
|
|
123
123
|
|
|
124
124
|
//@ts-ignore TODO: Figure out how to load types from inculde folders in Civet LSP
|
|
125
|
-
m._compile(code, filename);
|
|
125
|
+
return m._compile(code, filename);
|
|
126
126
|
};
|