Use clearer name for package.json variable
parent
4bd28fa8aa
commit
dd3afd72b3
|
@ -1,5 +1,5 @@
|
|||
const pkg = require("./package.json");
|
||||
const bannerText = `${pkg.name} v${pkg.version}`;
|
||||
const package_ = require("./package.json");
|
||||
const bannerText = `${package_.name} v${package_.version}`;
|
||||
|
||||
module.exports = {
|
||||
map: {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { defineConfig } from "vite";
|
||||
import * as path from "path";
|
||||
import pkg from "./package.json";
|
||||
import package_ from "./package.json";
|
||||
|
||||
export default defineConfig({
|
||||
esbuild: {
|
||||
|
@ -17,7 +17,7 @@ export default defineConfig({
|
|||
},
|
||||
rollupOptions: {
|
||||
output: {
|
||||
banner: `/*! ${pkg.name} v${pkg.version} */`,
|
||||
banner: `/*! ${package_.name} v${package_.version} */`,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue