@danielx/civet 0.4.12 → 0.4.14
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 +18 -10
- package/dist/browser.js +648 -493
- package/dist/esbuild-plugin.js +7 -1
- package/dist/esm.mjs +2 -2
- package/dist/main.js +648 -493
- package/package.json +1 -1
package/dist/esbuild-plugin.js
CHANGED
|
@@ -13,8 +13,14 @@ module.exports = {
|
|
|
13
13
|
try {
|
|
14
14
|
const source = await readFile(args.path, 'utf8')
|
|
15
15
|
const filename = path.relative(process.cwd(), args.path)
|
|
16
|
+
const compiled = compile(source, {
|
|
17
|
+
filename,
|
|
18
|
+
inlineMap: true,
|
|
19
|
+
js: true
|
|
20
|
+
})
|
|
21
|
+
|
|
16
22
|
return {
|
|
17
|
-
contents:
|
|
23
|
+
contents: compiled,
|
|
18
24
|
}
|
|
19
25
|
}
|
|
20
26
|
catch (e) {
|
package/dist/esm.mjs
CHANGED
|
@@ -36,7 +36,7 @@ function normalizeSlashes(value) {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
const ensureRegister = function() {
|
|
39
|
-
|
|
39
|
+
if (registered)return
|
|
40
40
|
|
|
41
41
|
const installation = {
|
|
42
42
|
environment: 'node',
|
|
@@ -57,7 +57,7 @@ const ensureRegister = function() {
|
|
|
57
57
|
|
|
58
58
|
sourceMapSupport.install(installation)
|
|
59
59
|
|
|
60
|
-
registered = true
|
|
60
|
+
return registered = true
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
export function resolve(specifier, context, next) {
|