Skip to content

Commit

Permalink
test: add e2e cases
Browse files Browse the repository at this point in the history
  • Loading branch information
chenjiahan committed Aug 25, 2024
1 parent 51c0e68 commit f5f5b62
Show file tree
Hide file tree
Showing 35 changed files with 572 additions and 125 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": ["dist"],
"files": [
"dist"
],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
Expand All @@ -38,7 +40,8 @@
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@playwright/test": "^1.45.3",
"@rsbuild/core": "^1.0.1-beta.11",
"@rsbuild/core": "^1.0.1-beta.16",
"@rsbuild/plugin-less": "1.0.1-beta.16",
"@types/node": "^20.14.13",
"nano-staged": "^0.8.0",
"playwright": "^1.45.3",
Expand Down
183 changes: 105 additions & 78 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { createRequire } from 'node:module';
import type { RsbuildPlugin, RspackChain } from '@rsbuild/core';
import { type VueLoaderOptions, VueLoaderPlugin } from 'vue-loader';
import { VueLoader15PitchFixPlugin } from './VueLoader15PitchFixPlugin.js';
import { applySplitChunksRule } from './splitChunks.js';

const require = createRequire(import.meta.url);

export type SplitVueChunkOptions = {
/**
* Whether to enable split chunking for Vue-related dependencies (e.g., vue, vue-loader).
Expand Down
Loading

0 comments on commit f5f5b62

Please sign in to comment.