Skip to content

Commit b990850

Browse files
authored
Merge pull request #7804 from error-four-o-four/replace-dayjs
Remove dayjs dependency and update date formatting in banner
2 parents 9cd8444 + d3d8fc6 commit b990850

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

package-lock.json

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"@vitest/browser": "^2.1.5",
5252
"all-contributors-cli": "^6.19.0",
5353
"concurrently": "^8.2.2",
54-
"dayjs": "^1.11.10",
5554
"documentation": "^14.0.3",
5655
"eslint": "^8.54.0",
5756
"glob": "^11.0.1",

rollup.config.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { string } from 'rollup-plugin-string';
44
import commonjs from '@rollup/plugin-commonjs';
55
import terser from '@rollup/plugin-terser';
66
import pkg from './package.json' with { type: 'json' };
7-
import dayjs from 'dayjs';
87
import { visualizer } from 'rollup-plugin-visualizer';
98
import replace from '@rollup/plugin-replace';
109
import alias from '@rollup/plugin-alias';
@@ -27,7 +26,7 @@ const plugins = [
2726
preventAssignment: true
2827
})
2928
];
30-
const banner = `/*! p5.js v${pkg.version} ${dayjs().format('MMMM D, YYYY')} */`;
29+
const banner = `/*! p5.js v${pkg.version} ${new Intl.DateTimeFormat('en-US', { month: 'long', day: 'numeric', year: 'numeric' }).format(new Date())} */`;
3130
const bundleSize = (name, sourcemap) => {
3231
return visualizer({
3332
filename: `analyzer/${name}.html`,
@@ -80,7 +79,7 @@ const generateModuleBuild = () => {
8079
plugins: [
8180
...plugins
8281
]
83-
}
82+
};
8483
});
8584
};
8685

0 commit comments

Comments
 (0)