-
-
Notifications
You must be signed in to change notification settings - Fork 284
feat: Ignore popup/index.ts instead of erroring #1520
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for creative-fairy-df92c4 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
packages/wxt/src/core/utils/building/__tests__/find-entrypoints.test.ts
Outdated
Show resolved
Hide resolved
packages/wxt/src/core/utils/building/__tests__/find-entrypoints.test.ts
Outdated
Show resolved
Hide resolved
it('should ignore other index files when index.html exists', async () => { | ||
globMock.mockResolvedValueOnce([ | ||
'popup/index.html', | ||
'popup/index.ts', | ||
'popup/index.css', | ||
]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nishu-murmu I also made .css
and any other index.*
files be ignored when an index.html
file exists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, thanks.
'options/index.html', | ||
'options/index.jsx', | ||
'popup.html', | ||
'popup/index.html', | ||
'popup/index.ts', | ||
'ui.html', | ||
'other.ts', | ||
'other/index.ts', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slightly tweaked the inputs to this test, so it tests both HTML and script entrypoints.
I've updated this PR. I moved the fix to the correct location and updated tests accordingly. |
@wxt-dev/analytics
@wxt-dev/auto-icons
@wxt-dev/browser
@wxt-dev/i18n
@wxt-dev/module-react
@wxt-dev/module-solid
@wxt-dev/module-svelte
@wxt-dev/module-vue
@wxt-dev/storage
@wxt-dev/unocss
@wxt-dev/webextension-polyfill
wxt
commit: |
Overview
#1333
Manual Testing
I still wasn't able to work the second test work. Could use some help.
Related Issue
This PR closes #1333