Skip to content

Commit f9d933d

Browse files
committed
♻ refactor: Use .bundle.js pattern
1 parent 99a5f32 commit f9d933d

20 files changed

+19
-114
lines changed

gulpfile.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ function watchFiles() {
102102
"src/options/*.js",
103103
"src/bibMatcher/*.js",
104104
"src/fullMemory/*.js",
105+
"!**/*.bundle.js",
105106
],
106107
buildESModules
107108
);

rollup.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default [
3434
{
3535
input: "src/popup/js/popup.js",
3636
output: {
37-
file: "src/popup/min/popup-bundle.js",
37+
file: "src/popup/min/popup.bundle.js",
3838
format: "iife",
3939
name: "PaperMemoryPopup",
4040
sourcemap: !isProduction,
@@ -45,7 +45,7 @@ export default [
4545
{
4646
input: "src/content_scripts/content_script.js",
4747
output: {
48-
file: "src/content_scripts/content-bundle.js",
48+
file: "src/content_scripts/content.bundle.js",
4949
format: "iife",
5050
name: "PaperMemoryContent",
5151
sourcemap: !isProduction,
@@ -56,7 +56,7 @@ export default [
5656
{
5757
input: "src/options/options.js",
5858
output: {
59-
file: "src/options/options-bundle.js",
59+
file: "src/options/options.bundle.js",
6060
format: "iife",
6161
name: "PaperMemoryOptions",
6262
sourcemap: !isProduction,
@@ -67,7 +67,7 @@ export default [
6767
{
6868
input: "src/background/background.js",
6969
output: {
70-
file: "src/background/background-bundle.js",
70+
file: "src/background/background.bundle.js",
7171
format: "iife",
7272
name: "PaperMemoryBackground",
7373
sourcemap: !isProduction,
@@ -78,7 +78,7 @@ export default [
7878
{
7979
input: "src/bibMatcher/bibMatcher.js",
8080
output: {
81-
file: "src/bibMatcher/bibMatcher-bundle.js",
81+
file: "src/bibMatcher/bibMatcher.bundle.js",
8282
format: "iife",
8383
name: "PaperMemoryBibMatcher",
8484
sourcemap: !isProduction,
@@ -89,7 +89,7 @@ export default [
8989
{
9090
input: "src/fullMemory/fullMemory.js",
9191
output: {
92-
file: "src/fullMemory/fullMemory-bundle.js",
92+
file: "src/fullMemory/fullMemory.bundle.js",
9393
format: "iife",
9494
name: "PaperMemoryFullMemory",
9595
sourcemap: !isProduction,

src/background/background-bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/background/background.bundle.js.map

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

src/bibMatcher/bibMatcher-bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bibMatcher/bibMatcher.bundle.js.map

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

src/content_scripts/content-bundle.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)