File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
vite-plugin-mock-dev-server/src/compiler Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,9 @@ import config from '@pengzhanbo/eslint-config'
33export default config ( {
44 pnpm : true ,
55 vue : false ,
6+ typescript : {
7+ erasableOnly : true ,
8+ } ,
69} , {
710 files : [ '**/*.md/*.ts' ] ,
811 rules : {
Original file line number Diff line number Diff line change @@ -27,9 +27,11 @@ export class Compiler extends EventEmitter {
2727 private isESM = false
2828
2929 private _mockData : Record < string , MockOptions > = { }
30+ options ! : ResolvedMockServerPluginOptions
3031
31- constructor ( public options : ResolvedMockServerPluginOptions ) {
32+ constructor ( options : ResolvedMockServerPluginOptions ) {
3233 super ( )
34+ this . options = options
3335 this . cwd = options . cwd || process . cwd ( )
3436 try {
3537 const pkg = loadPackageJSONSync ( this . cwd )
You can’t perform that action at this time.
0 commit comments