-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR is a first attempt at removing webpack from the framework. I started with just removing the bundler config option and kept pulling the threads until it got to this stage. This will have touched a **lot** of files and could in theory be broken down into smaller PRs if we find the need to. This will be a breaking change. The follow are the breaking changes I have identified: 1. `prebuildWebFile` is function no longer exported from `@redwoodjs/babel-config` package 2. `@redwoodjs/cli-storybook` has been removed 3. `yarn rw build` no longer accepts the `--stats` flag 4. `yarn rw dev` no longer accepts the `--watchNodeModules` flag 5. `yarn rw setup custom-web-index` command has been removed 6. `yarn rw setup webpack` has been removed 7. `@redwoodjs/core` no longer provides `@redwoodjs/core/config/*` files 8. The `web.bundler` TOML config option has been removed 9. `@redwoodjs/testing` no longer provides storybook config files 10. `@redwoodjs/testing` no longer provides a `StorybookProvider` 11. The `webpack` bin has been removed from `@redwoodjs/web` **WIP** - [x] Fix `rw test web` command - [x] Fix storybook smoke test (move over to storybook-vite) - [x] Update docs - [x] Create changeset entry - [x] Go through the TODO(jgmw) and address them: - [x] `packages/babel-config/src/api.ts` - [x] `packages/babel-config/src/plugins/babel-plugin-redwood-routes-auto-loader.ts` - [x] `packages/cli/src/commands/dev.js` - [x] `packages/prerender/src/babelPlugins/babel-plugin-redwood-prerender-media-imports.ts` - [x] `packages/project-config/src/paths.ts` - [x] `packages/testing/src/web/fileMock.ts` - [x] `packages/vite/src/build/__tests__/nestedPages.test.ts` - [x] `packages/vite/src/lib/envVarDefinitions.ts` - [x] `packages/vite/src/lib/registerFwGlobalsAndShims.ts` - [x] `packages/web/src/assetImports.ts` - [x] `packages/web/src/config.ts` - [x] Edit required checks on the repo settings **Follow up items** 1. Update storybook documentation --------- Co-authored-by: Daniel Choudhury <dannychoudhury@gmail.com>
- Loading branch information
1 parent
4e13f10
commit 111c6ef
Showing
116 changed files
with
615 additions
and
6,953 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
- breaking: remove webpack (#10867) by @Josh-Walker-GM | ||
|
||
This PR removes support for webpack. | ||
|
||
--- | ||
To the person releasing, the follow are the breaking changes I have identified: | ||
1. `prebuildWebFile` is function no longer exported from `@redwoodjs/babel-config` package | ||
2. `@redwoodjs/cli-storybook` has been removed | ||
3. `yarn rw build` no longer accepts the `--stats` flag | ||
4. `yarn rw dev` no longer accepts the `--watchNodeModules` flag | ||
5. `yarn rw setup custom-web-index` command has been removed | ||
6. `yarn rw setup webpack` has been removed | ||
7. `@redwoodjs/core` no longer provides `@redwoodjs/core/config/*` files | ||
8. The `web.bundler` TOML config option has been removed | ||
9. `@redwoodjs/testing` no longer provides storybook config files | ||
10. `@redwoodjs/testing` no longer provides a `StorybookProvider` | ||
11. The `webpack` bin has been removed from `@redwoodjs/web` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.