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