Aaron Klinker
19c0948d95
feat!: Change default publicDir to <rootDir>/public
...
BREAKING CHANGE: `config.publicDir`'s default changed from `<srcDir>/public` to `rootDir/<public>` to align with other frameworks and standards
2023-07-20 15:47:38 -05:00
Aaron Klinker
58a84ec253
feat!: Add type safety to browser.runtime.getURL
...
Entrypoint outputs and files in the public directory are typed properly.
Chunks and other generated files are not typed since they aren't often accessed at runtime.
BREAKING CHANGE: `browser` is now imported from `wxt/browser` instead of `webextension-polyfill`
2023-07-20 13:55:35 -05:00
Aaron Klinker
609223566c
types: Allow any string for the __BROWSER__ global
2023-07-20 13:14:16 -05:00
Aaron Klinker
aa4c0449e9
Fix failing tests
2023-07-20 11:13:55 -05:00
Aaron Klinker
f195aa429c
Fix type error
2023-07-20 10:40:03 -05:00
Aaron Klinker
ca20a210ea
feat: Include background script in dev mode if user doesn't define one
2023-07-20 10:38:53 -05:00
Aaron Klinker
547fee0e0e
feat: Auto-import from subdirectories
2023-07-20 09:54:44 -05:00
Aaron Klinker
54b18cc66e
fix: Properly load entrypoints that reference import.meta
2023-07-20 09:43:16 -05:00
Aaron Klinker
d8c190365a
fix: Don't crash when generating types in dev mode
2023-07-20 09:06:32 -05:00
Aaron
dca43efe0d
feat: Add wxt zip command ( #47 )
2023-07-16 14:38:56 -05:00
Aaron
c71b5e12f2
fix: Some fields cannot be overridden from config.manifest ( #46 )
2023-07-16 12:03:14 -05:00
Aaron Klinker
495c5c8e4c
fix: Read boolean maniest options from meta tags correctly
2023-07-16 11:29:34 -05:00
Aaron
efc3230674
fix: Correctly lookup open port ( #45 )
2023-07-16 11:14:50 -05:00
Aaron Klinker
2fb5a542d3
fix: Register content scripts correctly
2023-07-16 10:37:42 -05:00
Aaron Klinker
6f5bf89645
feat: Support all content script options
2023-07-16 10:10:25 -05:00
Aaron Klinker
90fa6bfc40
fix: Remove HMR log
...
It was causing too many logs during development.
2023-07-15 14:11:22 -05:00
Aaron Klinker
3db5cec2ca
feat: Recongize unnamed content scripts (content.ts and content/index.ts)
2023-07-15 13:48:56 -05:00
Aaron Klinker
375a2a6640
docs: Add inline JSDoc for public types
2023-07-14 22:41:46 -05:00
Aaron Klinker
5b48ae99f4
feat!: Rename defineBackgroundScript to defineBackground
...
BREAKING CHANGE: Rename `defineBackgroundScript` to `defineBackground`. Update your background entrypoints
2023-07-14 20:03:12 -05:00
Aaron Klinker
977246f9ed
fix: Add logs when a hot reload happens
2023-07-14 09:39:40 -05:00
Aaron
602dd42e5c
chore: Svelte template ( #34 )
2023-07-14 09:20:49 -05:00
Aaron Klinker
ea92a2743b
fix: Resolve tsconfig paths in vite
2023-07-14 08:35:48 -05:00
Aaron Klinker
371be99770
fix: Include vite/client types
2023-07-13 17:36:52 -05:00
Aaron Klinker
49965e7786
fix: Fix config hook implementations for vite plugins
...
Turns out the returned config is merged with the user config, so we don't have to do that ourselves.
2023-07-13 16:36:39 -05:00
Aaron Klinker
fa2b6566d8
fix: Fix regression where manifest was not listed first in build summary
2023-07-13 16:09:23 -05:00
Aaron
aa16014650
feat: Add tsconfig path aliases ( #32 )
2023-07-11 17:39:13 -05:00
Aaron Klinker
ac0b28e608
fix: Cleanup build summary with sourcemaps
2023-07-11 17:18:22 -05:00
Aaron Klinker
05ca9985d5
fix: Merge manifest option from both inline and user config
2023-07-11 10:24:55 -05:00
Aaron Klinker
6e7184d98d
fix: Generate valid type for EntrypointPath when there are no entrypoints
2023-07-11 09:42:08 -05:00
Aaron Klinker
ee49837804
feat: Accept a function for config.manifest
2023-07-11 09:41:43 -05:00
Aaron Klinker
b29c3c6fdd
fix: Only add imports to JS files
2023-07-10 23:19:13 -05:00
Aaron Klinker
ef6001e0c0
types: Change config.vite to UserConfig
2023-07-10 23:00:30 -05:00
Aaron
2efc193b45
fix: Unable to read entrypoint options ( #28 )
2023-07-10 22:18:20 -05:00
Aaron Klinker
2e51e7349d
fix: Allow dashes in entrypoint names
2023-07-10 22:16:08 -05:00
Aaron
249aa5eccc
feat: Content scripts reloading ( #25 )
2023-07-10 17:47:52 -05:00
Aaron
75eb3de89e
chore: Rename templates to virtual-modules ( #24 )
2023-07-02 21:49:01 -05:00
Aaron
cd714ea196
feat: Reload HTML files individually ( #23 )
2023-07-02 21:37:28 -05:00
Aaron Klinker
c51f0e055f
fix: Show Vite warnings and errors
2023-07-02 20:40:34 -05:00
Aaron Klinker
37986bf230
fix: Overwrite files with the same name when renaming entrypoints in dev mode
2023-07-02 20:11:21 -05:00
Aaron
13a713cc28
feat: Setup background script web socket/reload ( #22 )
2023-07-02 20:00:18 -05:00
Aaron Klinker
a78aada96e
chore: Refactor build outputs to support transpiled templates
2023-07-02 17:05:23 -05:00
Aaron
3307fc42a0
feat: Reload extension when source code is changed ( #17 )
2023-07-02 16:04:13 -05:00
Aaron
8be53efd24
chore: Refactor build output type ( #19 )
2023-07-01 13:58:44 -05:00
Aaron
f02abc5227
fix: Remove hash from content script css outputs ( #20 )
2023-07-01 13:54:18 -05:00
Aaron Klinker
2dd7a99937
fix: Output chunks to a chunks directory
2023-06-28 16:35:11 -05:00
Aaron Klinker
9ab3953810
chore: Refactor folder structure
2023-06-25 21:11:11 -05:00
Aaron
62f4f605d0
feat: Open browser when starting dev server ( #11 )
2023-06-25 20:58:47 -05:00
Aaron Klinker
50bb8454dd
fix: Firefox manifest warnings in dev mode
2023-06-25 20:53:32 -05:00
Aaron Klinker
f114c5bf88
feat: Add more supported browser types
2023-06-25 12:43:15 -05:00
Aaron
9ef451be2e
feat: Support more CLI flags for build and dev ( #9 )
2023-06-25 12:23:04 -05:00