Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-virtual-mpa

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-virtual-mpa - npm Package Compare versions

Comparing version 1.8.3 to 1.9.0

14

CHANGELOG.md

@@ -0,14 +1,18 @@

# 1.9.0
feat: Support disable default rewrite rules by passing `false`. Closed [#44](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/44).
# 1.8.3
- fix: Add cross-platform path parsing support. Closed [#41](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/41)
- chore: update dependencies.
- fix: Add cross-platform path parsing support. Closed [#41](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/41).
- chore: Update dependencies.
# 1.8.2
- feat: support `scanOptions.template` option.
- chore: update dependencies' version.
- feat: Support `scanOptions.template` option.
- chore: Update dependencies' version.
# 1.8.1
- fix: `ERR_TOO_MANY_REDIRECTS` when set `base` option and visit base. Closed [#33](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/33)
- fix: `ERR_TOO_MANY_REDIRECTS` when set `base` option and visit base. Closed [#33](https://github.com/emosheeep/vite-plugin-virtual-mpa/issues/33).
- feat: Support `/dir/` without explicit `index.html` refer to the implementation of vite.

@@ -15,0 +19,0 @@ - chore: Preserve the priority of `clearScreen` option provided by user.

@@ -83,2 +83,3 @@ import type { FilterPattern, ViteDevServer } from 'vite';

}
export type RewriteRule = false | Rewrite[];
export interface MpaOptions<PageName extends string, PageFilename extends string, PageTpl extends string, Event extends AllowedEvent, DefTpl extends string> {

@@ -99,3 +100,3 @@ /**

*/
rewrites?: Rewrite[];
rewrites?: RewriteRule;
/**

@@ -105,3 +106,3 @@ * Configure your preview server's rewrite rules.

*/
previewRewrites?: Rewrite[];
previewRewrites?: RewriteRule;
/**

@@ -108,0 +109,0 @@ * Sometimes you might want to reload `pages` config or restart ViteDevServer when

@@ -92,2 +92,4 @@ "use strict";

const { base } = resolvedConfig;
if (rewrites2 === false)
return;
middlewares.use(

@@ -94,0 +96,0 @@ // @ts-ignore

{
"name": "vite-plugin-virtual-mpa",
"version": "1.8.3",
"version": "1.9.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "author": "秦旭洋",

@@ -94,2 +94,3 @@ # vite-plugin-virtual-mpa ⚡

type FilterPattern = string | RegExp | (string | RegExp)[]
type RewriteRule = false | Rewrite[]
interface WatchHandler {

@@ -123,3 +124,3 @@ (ctx: {

*/
rewrites?: Rewrite[],
rewrites?: RewriteRule,
/**

@@ -129,3 +130,3 @@ * Configure your preview server's rewrite rules.

*/
previewRewrites?: Rewrite[],
previewRewrites?: RewriteRule,
/**

@@ -132,0 +133,0 @@ * Use to scan directories that have similar structure to generate pages.

@@ -91,2 +91,3 @@ # vite-plugin-virtual-mpa ⚡

type FilterPattern = string | RegExp | (string | RegExp)[]
type RewriteRule = false | Rewrite[]
interface WatchHandler {

@@ -120,3 +121,3 @@ (ctx: {

*/
rewrites?: Rewrite[],
rewrites?: RewriteRule,
/**

@@ -126,3 +127,3 @@ * 为预览服务器配置重定向规则,配置方式同 rewrites。

*/
previewRewrites?: Rewrite[],
previewRewrites?: RewriteRule,
/**

@@ -129,0 +130,0 @@ * 用于扫描相似的目录结构,自动生成 pages 配置。

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc