|
1 | | -import { promises as fs } from "fs"; |
2 | | -import path from "path"; |
| 1 | +import { promises as fs } from "node:fs"; |
| 2 | +import path from "node:path"; |
3 | 3 |
|
4 | 4 | import { OutputBundle, Plugin, NormalizedOutputOptions, OutputOptions } from "rollup"; |
5 | 5 | import opn, { Options as OpenOptions } from "open"; |
6 | 6 |
|
7 | | -import { ModuleLengths, ModuleTree, ModuleTreeLeaf, VisualizerData } from "../shared/types"; |
8 | | -import { version } from "./version"; |
| 7 | +import { ModuleLengths, ModuleTree, ModuleTreeLeaf, VisualizerData } from "../shared/types.js"; |
| 8 | +import { version } from "./version.js"; |
9 | 9 |
|
10 | | -import { createGzipSizeGetter, createBrotliSizeGetter, SizeGetter } from "./compress"; |
| 10 | +import { createGzipSizeGetter, createBrotliSizeGetter, SizeGetter } from "./compress.js"; |
11 | 11 |
|
12 | | -import { TemplateType } from "./template-types"; |
13 | | -import { ModuleMapper, replaceHashPlaceholders } from "./module-mapper"; |
14 | | -import { addLinks, buildTree, mergeTrees } from "./data"; |
15 | | -import { getSourcemapModules } from "./sourcemap"; |
16 | | -import { renderTemplate } from "./render-template"; |
17 | | -import { createFilter, Filter } from "../shared/create-filter"; |
| 12 | +import { TemplateType } from "./template-types.js"; |
| 13 | +import { ModuleMapper, replaceHashPlaceholders } from "./module-mapper.js"; |
| 14 | +import { addLinks, buildTree, mergeTrees } from "./data.js"; |
| 15 | +import { getSourcemapModules } from "./sourcemap.js"; |
| 16 | +import { renderTemplate } from "./render-template.js"; |
| 17 | +import { createFilter, Filter } from "../shared/create-filter.js"; |
18 | 18 |
|
19 | 19 | const WARN_SOURCEMAP_DISABLED = |
20 | 20 | "rollup output configuration missing sourcemap = true. You should add output.sourcemap = true or disable sourcemap in this plugin"; |
|
0 commit comments