Aaron
da1f7f3ea5
feat: Support JS entrypoints ( #155 )
2023-10-07 09:53:47 -05:00
Aaron
868fd27804
feat: Allow customizing entrypoint options per browser ( #154 )
2023-10-05 17:12:20 -05:00
Aaron Klinker
d9fdcb5b33
fix: Add missing persistent type to defineBackgroundScript
2023-10-05 16:08:03 -05:00
Aaron Klinker
580793158f
fix: Default safari to MV2
2023-10-05 16:07:20 -05:00
Aaron
c9028dd335
docs: Restructure website to improve UX ( #149 )
2023-10-02 09:42:46 -05:00
Aaron
4150e42c05
feat: createContentScriptUi helper ( #143 )
2023-09-30 21:57:57 -05:00
Aaron
725ecf7c64
fix: Reorder typescript paths to give priority to @ and ~ over @@ and ~~ ( #142 )
2023-09-30 12:33:33 -05:00
Aaron
3847092df4
feat: Content script cssInjectionMode ( #141 )
2023-09-30 12:32:00 -05:00
Aaron
19b11c236f
fix!: Output content script CSS to content-scripts/<name>.css ( #140 )
...
BREAKING CHANGE: Content script CSS used to be output to `assets/<name>.css`, but is now `content-scripts/<name>.css` to match the docs.
2023-09-30 12:20:41 -05:00
Aaron Klinker
4b2012c489
fix: Validate transformed manifest correctly
2023-09-30 10:32:57 -05:00
Aaron Klinker
0591050f31
chore: Store user config metadata in memory
...
This will be used in #16
2023-09-30 10:30:25 -05:00
Aaron
89d15babc2
feat: Disable opening browser automatically during dev mode ( #136 )
2023-09-30 08:45:24 -05:00
Aaron
e97071b7d7
fix: Support loading tsx entrypoints ( #134 )
2023-09-29 22:08:20 -05:00
Aaron
cf5a7d1411
fix: Use execaCommand instead of node:child_process ( #130 )
2023-09-27 12:06:44 -05:00
Aaron Klinker
455e7f3765
fix(content-scripts): Don't throw an error when including include or exclude options on a content script
2023-09-27 11:29:50 -05:00
Aaron
a0e1b4741e
feat(client): Add block and addEventListener utils to ContentScriptContext ( #128 )
2023-09-26 17:19:56 -05:00
Aaron
7b3ea52e02
feat: Show spinner when building entrypoints ( #126 )
2023-09-25 14:23:19 -05:00
Aaron
2e142b3038
feat: --analyze build flag ( #125 )
2023-09-23 16:00:35 -05:00
Aaron
26fca5c0a2
feat: Add transformManifest option ( #124 )
2023-09-22 21:08:03 -05:00
Aaron
30a61f4384
fix: Don't open browser during development when using WSL ( #123 )
2023-09-22 20:32:31 -05:00
Aaron Klinker
3f260ee777
fix: Disable dev logs in production
...
This closes #119
2023-09-22 12:05:05 -05:00
Aaron Klinker
1f6a931b02
fix: Use the same mode for each build step
2023-09-22 11:57:36 -05:00
Aaron
07891d028b
feat!: Require a function for vite configuration ( #121 )
...
BREAKING CHANGE: The `vite` config option must now be a function. If you were using an object before, change it from `vite: { ... }` to `vite: () => ({ ... })`.
2023-09-22 11:51:55 -05:00
Aaron Klinker
1f448d1bf0
feat: Export ContentScriptContext from wxt/client
2023-09-22 11:00:28 -05:00
Aaron
16cebc538f
feat: Add ContentScriptContext util for stopping invalidated content scripts ( #120 )
2023-09-21 18:48:07 -05:00
Aaron Klinker
92039b855e
fix: Automatically replace vite's process.env.NODE_ENV output in lib mode with the mode
2023-09-19 17:56:10 -05:00
Aaron Klinker
87e8df90f5
fix: Don't warn about deep entrypoint subdirectories not being recognized
2023-09-19 17:32:25 -05:00
Aaron Klinker
419fab8193
fix: Recognize background/index.ts as an entrypoint
2023-09-19 17:32:25 -05:00
Aaron
8e3169eb1e
chore: Refactor how config is resolved ( #118 )
2023-09-19 16:36:00 -05:00
Aaron Klinker
4ec904ea3c
fix: Allow function for vite config
2023-09-19 12:53:35 -05:00
Aaron
234bd39a11
fix: Import client utils when getting entrypoint config ( #117 )
2023-09-19 10:50:41 -05:00
Aaron
f51bbc0a68
feat: Include/exclude entrypoints based on target browser ( #115 )
2023-09-15 13:51:53 -05:00
Aaron
6ee5b22e6c
feat: Allow disabling auto-imports ( #114 )
2023-09-15 12:25:22 -05:00
Aaron Klinker
b4de93d2e6
fix: Allow any string for target browser
2023-09-15 12:24:52 -05:00
Aaron Klinker
dbd84c8815
chore: Add entrypoints debug log
2023-09-14 15:03:50 -05:00
Aaron Klinker
5f15f9ccec
fix!: Change default publicDir to <srcDir>/public
...
This reverts 19c0948
2023-09-07 17:32:30 -05:00
Aaron Klinker
ac7cbfce1f
chore: Move repo to wxt-dev org
2023-09-05 18:01:59 -05:00
Aaron
1bb3474a91
fix(types): Don't write to files if nothing changes ( #107 )
2023-09-05 17:24:38 -05:00
Aaron
89b34403ee
feat(cli): Add wxt clean command to delete generated files ( #106 )
2023-09-05 16:21:57 -05:00
Aaron Klinker
e086374828
fix(init): Don't show cd . when initializing the current directory
2023-09-05 10:21:14 -05:00
Aaron
a8285fff78
feat: Generate types for browser.i18n.getMessage ( #103 )
2023-09-05 09:55:55 -05:00
Aaron
f234c85357
fix!: Use relative path aliases inside .wxt/tsconfig.json ( #102 )
...
BREAKING CHANGE: Moved .wxt directory from inside srcDir to root to match Nuxt.
2023-09-04 21:48:07 -05:00
Aaron
b301ee324e
feat: Replace web-ext with web-ext-run ( #101 )
2023-09-02 09:47:05 -05:00
Aaron Klinker
5f5f1d90f8
fix: Don't overwrite wxt.config.ts content scripts, append entrypoints to it
2023-08-29 16:02:47 -05:00
Aaron Klinker
b428a62a90
fix: Allow adding custom content scripts
2023-08-29 15:48:25 -05:00
dependabot[bot]
83f457f40f
chore(deps): bump vite from 4.4.7 to 4.4.9 ( #82 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aaron Klinker <aaronklinker1@gmail.com >
2023-08-13 19:30:02 -05:00
Aaron
0194448af4
Remove generated docs/config.md file ( #83 )
2023-08-13 14:59:34 -05:00
Aaron
d05f126eb3
feat: Add --debug flag for printing debug logs for all CLI commands ( #75 )
2023-08-13 14:04:43 -05:00
Aaron
6ee8a43677
docs: Generate markdown for config reference ( #74 )
2023-08-13 12:51:19 -05:00
Aaron Klinker
d54d6111e6
feat: Don't allow auto-importing from subdirectories
...
This reverts commit 547fee0e0e .
BREAKING CHANGE: 547fee previously added auto imports from subdirectories, but Nuxt does not do this, so to be consistent with Nuxt's DX, I'm also removing these auto-imports.
2023-08-13 10:13:42 -05:00