Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundling custom .js files #13

Open
Shandelier opened this issue Dec 22, 2023 · 2 comments
Open

bundling custom .js files #13

Shandelier opened this issue Dec 22, 2023 · 2 comments

Comments

@Shandelier
Copy link

Shandelier commented Dec 22, 2023

Why the pnpm run dev command doesn't use rollup to bundle custom .js files added to the project?

If this is intended behaviour (not bundling in dev mode), how can I use my custom ~/options/custom.js file in options.html in dev mode?

I confirmed that build:prod work as expected (bundling).

EDIT: My problem is when i open Options in chrome extension in the console i'm getting this error:
"GET chrome-extension://omhjadppniapnjfeehfigoillobaapek/options/custom.js net::ERR_FILE_NOT_FOUND"
because it's not present in dev folder

@Shandelier
Copy link
Author

the projects use tsup for bundling so rollup is not needed, but I still can't use code from custom.js file inside options.html

@Shandelier
Copy link
Author

can't find a way of bundling with js files. As a workaround i use .ts files with .js code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant