@danielx/civet 0.6.31 → 0.6.32
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/dist/browser.js +175 -82
- package/dist/config.js +4 -0
- package/dist/esbuild-plugin.js +4 -0
- package/dist/esbuild.d.mts +1 -1
- package/dist/esbuild.d.ts +1 -1
- package/dist/esm.mjs +3 -0
- package/dist/main.js +175 -82
- package/dist/main.mjs +175 -82
- package/dist/rollup.d.mts +1 -1
- package/dist/rollup.d.ts +1 -1
- package/dist/unplugin.d.mts +2 -2
- package/dist/unplugin.d.ts +2 -2
- package/dist/vite.d.mts +1 -1
- package/dist/vite.d.ts +1 -1
- package/dist/webpack.d.mts +1 -1
- package/dist/webpack.d.ts +1 -1
- package/package.json +4 -3
package/dist/config.js
CHANGED
|
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
26
|
mod
|
|
23
27
|
));
|
package/dist/esbuild-plugin.js
CHANGED
|
@@ -18,6 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
25
|
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
26
|
mod
|
|
23
27
|
));
|
package/dist/esbuild.d.mts
CHANGED
|
@@ -2,6 +2,6 @@ import * as esbuild from 'esbuild';
|
|
|
2
2
|
import { PluginOptions } from './unplugin.mjs';
|
|
3
3
|
import 'unplugin';
|
|
4
4
|
|
|
5
|
-
declare const _default: (options
|
|
5
|
+
declare const _default: (options: PluginOptions) => esbuild.Plugin;
|
|
6
6
|
|
|
7
7
|
export { _default as default };
|
package/dist/esbuild.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import * as esbuild from 'esbuild';
|
|
|
2
2
|
import { PluginOptions } from './unplugin.js';
|
|
3
3
|
import 'unplugin';
|
|
4
4
|
|
|
5
|
-
declare const _default: (options
|
|
5
|
+
declare const _default: (options: PluginOptions) => esbuild.Plugin;
|
|
6
6
|
|
|
7
7
|
export { _default as default };
|
package/dist/esm.mjs
CHANGED
|
@@ -58,7 +58,10 @@ async function load(url, context, next) {
|
|
|
58
58
|
});
|
|
59
59
|
const transpiledUrl = url + ".tsx";
|
|
60
60
|
const result = await next(transpiledUrl, {
|
|
61
|
+
// ts-node won't transpile unless this is module
|
|
62
|
+
// can't use commonjs since we don't rewrite imports
|
|
61
63
|
format: "module",
|
|
64
|
+
// NOTE: Setting the source in the context makes it available when ts-node uses defaultLoad
|
|
62
65
|
source: tsSource
|
|
63
66
|
});
|
|
64
67
|
ensureRegister();
|