Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
caoxiemeihao committed Apr 27, 2023
1 parent b1a5bab commit 2d090cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,13 @@ export interface Options {
onResolve?: (rawImportee: string, id: string) => typeof rawImportee | void
}

const PLUGIN_NAME = 'vite-plugin-dynamic-import'

export default function dynamicImport(options: Options = {}): Plugin {
let config: ResolvedConfig
let resolve: Resolve
let extensions = DEFAULT_EXTENSIONS

return {
name: PLUGIN_NAME,
name: 'vite-plugin-dynamic-import',
configResolved(_config) {
config = _config
resolve = new Resolve(_config)
Expand Down

0 comments on commit 2d090cb

Please sign in to comment.