@shadow-js/vite 1.0.0 → 1.0.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/CHANGELOG.md +6 -0
- package/dist/dev/index.d.ts +0 -2
- package/dist/dev/index.js +1 -2
- package/dist/dev/mdx.d.ts +0 -2
- package/dist/dev/mdx.js +1 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/dev/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CompilerPlugin } from "@shadow-js/compiler";
|
|
2
2
|
import { Plugin } from "vite";
|
|
3
|
-
//#region src/index.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Options of {@link shadow}. Every member is optional: the defaults compile a ShadowJS app for the
|
|
6
5
|
* browser in `vite dev` and `vite build`, and for the server in SSR builds.
|
|
@@ -95,6 +94,5 @@ export interface ShadowPluginOptions {
|
|
|
95
94
|
* @since 1.0.0
|
|
96
95
|
*/
|
|
97
96
|
export declare function shadow(options?: ShadowPluginOptions): Plugin;
|
|
98
|
-
//#endregion
|
|
99
97
|
export { shadow as default };
|
|
100
98
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/dev/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CompileError, compile, getBackend, validatePlugins } from "@shadow-js/compiler";
|
|
2
2
|
import { compile as compile$1 } from "@shadow-js/compiler/javascript";
|
|
3
3
|
import * as vite from "vite";
|
|
4
|
-
|
|
4
|
+
// src/index.ts
|
|
5
5
|
const DEFAULT_INCLUDE = /\.[cm]?[jt]sx$/;
|
|
6
6
|
const DEFAULT_EXCLUDE = /[\\/]node_modules[\\/]/;
|
|
7
7
|
/**
|
|
@@ -138,7 +138,6 @@ function shadow(options = {}) {
|
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
-
//#endregion
|
|
142
141
|
export { shadow as default, shadow };
|
|
143
142
|
|
|
144
143
|
//# sourceMappingURL=index.js.map
|
package/dist/dev/mdx.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CompilerPlugin } from "@shadow-js/compiler";
|
|
2
2
|
import { Plugin } from "vite";
|
|
3
|
-
//#region src/mdx.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* `shadowMdx()`: a Vite plugin that turns `.mdx` (and `.md`) files into ShadowJS components. MDX is compiled to JSX by
|
|
6
5
|
* `@mdx-js/mdx`, an optional peer, and the JSX goes through the ShadowJS compiler in the same step, so an MDX file needs no
|
|
@@ -92,6 +91,5 @@ export interface ShadowMdxOptions {
|
|
|
92
91
|
* @since 1.0.0
|
|
93
92
|
*/
|
|
94
93
|
export declare function shadowMdx(options?: ShadowMdxOptions): Plugin;
|
|
95
|
-
//#endregion
|
|
96
94
|
export {};
|
|
97
95
|
//# sourceMappingURL=mdx.d.ts.map
|
package/dist/dev/mdx.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CompileError, compile, validatePlugins } from "@shadow-js/compiler";
|
|
2
|
-
|
|
2
|
+
// src/mdx.ts
|
|
3
3
|
function isNode(value) {
|
|
4
4
|
return typeof value === "object" && value !== null && typeof value.type === "string";
|
|
5
5
|
}
|
|
@@ -208,7 +208,6 @@ function shadowMdx(options = {}) {
|
|
|
208
208
|
function statelessPattern(pattern) {
|
|
209
209
|
return pattern.global || pattern.sticky ? new RegExp(pattern.source, pattern.flags.replace(/[gy]/g, "")) : pattern;
|
|
210
210
|
}
|
|
211
|
-
//#endregion
|
|
212
211
|
export { shadowMdx };
|
|
213
212
|
|
|
214
213
|
//# sourceMappingURL=mdx.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shadow-js/vite",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "A Vite plugin that compiles your JSX, builds for server rendering and sets up Vitest",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"typecheck": "tsc -p tsconfig.json"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@shadow-js/compiler": "1.0.
|
|
41
|
+
"@shadow-js/compiler": "1.0.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"vite": "^7.0.0 || ^8.0.0",
|
|
45
45
|
"@mdx-js/mdx": "^3.0.0",
|
|
46
|
-
"@shadow-js/web": "^1.0.
|
|
46
|
+
"@shadow-js/web": "^1.0.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependenciesMeta": {
|
|
49
49
|
"vite": {
|