Skip to content

Commit

Permalink
feat: expose createFilter util (#8562)
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Jun 13, 2022
1 parent e2c000c commit cd6c2a8
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion packages/plugin-vue-jsx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"@babel/core": "^7.18.2",
"@babel/plugin-syntax-import-meta": "^7.10.4",
"@babel/plugin-transform-typescript": "^7.18.4",
"@rollup/pluginutils": "^4.2.1",
"@vue/babel-plugin-jsx": "^1.1.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-vue-jsx/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as babel from '@babel/core'
import jsx from '@vue/babel-plugin-jsx'
// @ts-expect-error missing type
import importMeta from '@babel/plugin-syntax-import-meta'
import { createFilter, normalizePath } from '@rollup/pluginutils'
import { createFilter, normalizePath } from 'vite'
import type { ComponentOptions } from 'vue'
import type { Plugin } from 'vite'
import type { Options } from './types'
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-vue-jsx/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { VueJSXPluginOptions } from '@vue/babel-plugin-jsx'
import type { FilterPattern } from '@rollup/pluginutils'
import type { FilterPattern } from 'vite'

export interface FilterOptions {
include?: FilterPattern
Expand Down
3 changes: 0 additions & 3 deletions packages/plugin-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,5 @@
"source-map": "^0.6.1",
"vite": "workspace:*",
"vue": "^3.2.37"
},
"dependencies": {
"@rollup/pluginutils": "^4.2.1"
}
}
2 changes: 1 addition & 1 deletion packages/plugin-vue/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs'
import type { Plugin, ViteDevServer } from 'vite'
import { createFilter } from '@rollup/pluginutils'
import { createFilter } from 'vite'
/* eslint-disable import/no-duplicates */
import type {
SFCBlock,
Expand Down
3 changes: 1 addition & 2 deletions packages/plugin-vue/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import path from 'path'
import type { SFCBlock, SFCDescriptor } from 'vue/compiler-sfc'
import type { PluginContext, SourceMap, TransformPluginContext } from 'rollup'
import { normalizePath } from '@rollup/pluginutils'
import type { RawSourceMap } from 'source-map'
import type { EncodedSourceMap as TraceEncodedSourceMap } from '@jridgewell/trace-mapping'
import { TraceMap, eachMapping } from '@jridgewell/trace-mapping'
import type { EncodedSourceMap as GenEncodedSourceMap } from '@jridgewell/gen-mapping'
import { addMapping, fromMap, toEncodedMap } from '@jridgewell/gen-mapping'
import { transformWithEsbuild } from 'vite'
import { normalizePath, transformWithEsbuild } from 'vite'
import {
createDescriptor,
getPrevDescriptor,
Expand Down

0 comments on commit cd6c2a8

Please sign in to comment.