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
Aaron
aefc8d3167
feat: Discover icons from the public directory ( #72 )
2023-08-13 10:05:27 -05:00
Aaron
7ccff533ff
chore: Improve file list output in CI ( #73 )
2023-08-13 09:51:22 -05:00
Aaron
310f994ccb
feat: init command for bootstrapping new projects ( #65 )
2023-07-29 22:20:31 -05:00
Aaron
936d83bc08
chore: Simplify binary setup ( #62 )
2023-07-21 19:58:57 -05:00
Aaron Klinker
aea866c9cd
docs: Update installation docs
2023-07-21 14:10:34 -05:00
Aaron
044a24fd6a
feat: CSS entrypoints ( #61 )
2023-07-21 12:57:09 -05:00
Aaron
488d7885ca
feat: Windows support ( #50 )
2023-07-20 22:54:30 -05:00
Aaron Klinker
2c70246af5
fix: Add WebWorker lib to generated tsconfig
2023-07-20 22:34:16 -05:00
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