File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1- import libBundles from "./rollup.lib" ;
2- import mdBundles from "./rollup.markdown-parser" ;
1+ import libBundles from "./rollup.lib.mjs " ;
2+ import mdBundles from "./rollup.markdown-parser.mjs " ;
33
44let exports = [ ] ;
55
Original file line number Diff line number Diff line change 11import resolve from "@rollup/plugin-node-resolve" ;
22import json from "@rollup/plugin-json" ;
3- import babel from "@rollup/plugin-babel" ;
3+ import { babel } from "@rollup/plugin-babel" ;
44import { terser } from "rollup-plugin-terser" ;
55import bundleSize from "rollup-plugin-bundle-size" ;
6- import pkg from "./package.json" ;
76import typescript from "@rollup/plugin-typescript" ;
7+ import fs from "fs/promises" ;
8+
9+ const pkg = JSON . parse ( await fs . readFile ( "./package.json" , "utf8" ) ) ;
810
911const sourcemapOption = process . env . PROD ? undefined : "inline" ;
1012
Original file line number Diff line number Diff line change 11import resolve from "@rollup/plugin-node-resolve" ;
22import commonjs from "@rollup/plugin-commonjs" ;
3- import babel from "@rollup/plugin-babel" ;
3+ import { babel } from "@rollup/plugin-babel" ;
44import json from "@rollup/plugin-json" ;
55import { terser } from "rollup-plugin-terser" ;
66import bundleSize from "rollup-plugin-bundle-size" ;
@@ -9,9 +9,8 @@ import hash from "rollup-plugin-hash";
99import postcss from "rollup-plugin-postcss" ;
1010import postcssImport from "postcss-import" ;
1111import del from "rollup-plugin-delete" ;
12-
13- const fs = require ( "fs" ) ;
14- const mkdirp = require ( "mkdirp" ) ;
12+ import fs from "fs" ;
13+ import mkdirp from "mkdirp" ;
1514
1615const writeIndexHtmlToBuild = bundleName => {
1716 let indexHtml = fs . readFileSync (
You can’t perform that action at this time.
0 commit comments