|
1 | 1 | import path from 'path'
|
2 | 2 | import type { SFCBlock, SFCDescriptor } from 'vue/compiler-sfc'
|
3 |
| -import type { ResolvedOptions } from '.' |
| 3 | +import type { PluginContext, SourceMap, TransformPluginContext } from 'rollup' |
| 4 | +import { normalizePath } from '@rollup/pluginutils' |
| 5 | +import type { RawSourceMap } from 'source-map' |
| 6 | +import { SourceMapConsumer, SourceMapGenerator } from 'source-map' |
| 7 | +import { transformWithEsbuild } from 'vite' |
4 | 8 | import {
|
5 | 9 | createDescriptor,
|
6 | 10 | getPrevDescriptor,
|
7 | 11 | setSrcDescriptor
|
8 | 12 | } from './utils/descriptorCache'
|
9 |
| -import type { PluginContext, SourceMap, TransformPluginContext } from 'rollup' |
10 |
| -import { normalizePath } from '@rollup/pluginutils' |
11 |
| -import { resolveScript, isUseInlineTemplate } from './script' |
| 13 | +import { isUseInlineTemplate, resolveScript } from './script' |
12 | 14 | import { transformTemplateInMain } from './template'
|
13 |
| -import { isOnlyTemplateChanged, isEqualBlock } from './handleHotUpdate' |
14 |
| -import type { RawSourceMap } from 'source-map' |
15 |
| -import { SourceMapConsumer, SourceMapGenerator } from 'source-map' |
| 15 | +import { isEqualBlock, isOnlyTemplateChanged } from './handleHotUpdate' |
16 | 16 | import { createRollupError } from './utils/error'
|
17 |
| -import { transformWithEsbuild } from 'vite' |
18 | 17 | import { EXPORT_HELPER_ID } from './helper'
|
| 18 | +import type { ResolvedOptions } from '.' |
19 | 19 |
|
20 | 20 | // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
21 | 21 | export async function transformMain(
|
|
0 commit comments