Skip to content
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

chore: move non-core packages to rspack-contrib #7499

Merged
merged 2 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ crates/rspack_plugin_mf
crates/rspack_plugin_extract_css/src/runtime
packages/rspack/compiled
packages/rspack-dev-server/client
packages/rspack-plugin-react-refresh/client
packages/rspack-plugin-preact-refresh/client
packages/playground
packages/rspack/src/stats/DefaultStatsPrinterPlugin.ts
packages/rspack-test-tools/template
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ packages/**/etc/**/*
packages/rspack-test-tools/template/**/*
packages/rspack-test-tools/src/helper/legacy/**/*
packages/rspack-test-tools/tests/**/*
packages/rspack-test-preact-refresh/tests/**/*
packages/rspack-plugin-mini-css-extract/test/cases/**/*

crates/**/*
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ Thanks to:
- The [rolldown-legacy](https://github.com/rolldown-rs/rolldown-legacy) project created by old [Rolldown team](https://github.com/rolldown-rs), It's the predecessor of the [rolldown](https://github.com/rolldown) project, which explores the possibility of making a performant bundler in Rust with Rollup-compatible API. It inspires the design principles of Rspack.
- The [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) project created by [@jantimon](https://github.com/jantimon), `@rspack/html-plugin` is a fork of [html-webpack-plugin](https://github.com/jantimon/html-webpack-plugin) to avoid some webpack API usage not supported in Rspack.
- The [Turbopack](https://github.com/vercel/turbo) project which inspired the AST path logic of Rspack.
- The [react-refresh-webpack-plugin](https://github.com/pmmmwh/react-refresh-webpack-plugin) created by [@pmmmwh](https://github.com/pmmmwh), which inspires implement react refresh.
- The [prefresh](https://github.com/preactjs/prefresh) created by [@Jovi De Croock](https://github.com/JoviDeCroock), which inspires implement preact refresh rspack plugin.
- The [react-refresh-webpack-plugin](https://github.com/pmmmwh/react-refresh-webpack-plugin) created by [@pmmmwh](https://github.com/pmmmwh), which inspires implement [react refresh rspack plugin](https://github.com/rspack-contrib/rspack-plugin-react-refresh).
- The [prefresh](https://github.com/preactjs/prefresh) created by [@Jovi De Croock](https://github.com/JoviDeCroock), which inspires implement [preact refresh rspack plugin](https://github.com/rspack-contrib/rspack-plugin-preact-refresh).
- The [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) project created by [@sokra](https://github.com/sokra) which inspired implement css extract plugin.
- The [copy-webpack-plugin](https://github.com/webpack-contrib/copy-webpack-plugin) project created by [@kevlened](https://github.com/kevlened) which inspired implement copy rspack plugin.

Expand Down
5 changes: 0 additions & 5 deletions biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"packages/**/etc/**/*",
"crates/**/*",
"tests/**/*",
"packages/rspack-plugin-preact-refresh/tests/**/*",
"packages/rspack-test-tools/template/**/*",
"packages/rspack-test-tools/tests/**/*",
"packages/rspack-test-tools/src/helper/legacy/**/*",
Expand All @@ -25,8 +24,6 @@
// --- ignore runtime code in browser
"packages/rspack/hot",
"packages/rspack-dev-server/client",
"packages/rspack-plugin-react-refresh/client",
"packages/rspack-plugin-preact-refresh/client",
"packages/rspack/src/container/default.runtime.js"
]
},
Expand Down Expand Up @@ -75,8 +72,6 @@
// --- ignore runtime code in browser
"packages/rspack/hot",
"packages/rspack-dev-server/client",
"packages/rspack-plugin-react-refresh/client",
"packages/rspack-plugin-preact-refresh/client",
"packages/rspack/src/container/default.runtime.js"
]
},
Expand Down
4 changes: 2 additions & 2 deletions packages/create-rspack/template-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"devDependencies": {
"@rspack/cli": "workspace:*",
"@rspack/core": "workspace:*",
"@rspack/plugin-react-refresh": "workspace:*",
"@rspack/plugin-react-refresh": "1.0.0-beta.5",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"cross-env": "^7.0.3",
"react-refresh": "^0.14.0",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
}
}
}
4 changes: 2 additions & 2 deletions packages/create-rspack/template-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@rspack/plugin-react-refresh": "workspace:*",
"@rspack/plugin-react-refresh": "1.0.0-beta.5",
"@rspack/cli": "workspace:*",
"@rspack/core": "workspace:*",
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"cross-env": "^7.0.3",
"react-refresh": "^0.14.0"
}
}
}
2 changes: 1 addition & 1 deletion packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"core-js": "3.36.1",
"@rspack/core": "workspace:*",
"@rspack/dev-server": "workspace:*",
"@rspack/plugin-react-refresh": "workspace:*",
"@rspack/plugin-react-refresh": "1.0.0-beta.5",
"@swc/helpers": "0.5.8",
"@types/fs-extra": "11.0.4",
"babel-loader": "^9.1.3",
Expand Down
9 changes: 4 additions & 5 deletions packages/rspack-cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"extends": "../../tsconfig.base.json",
"include": ["src"],
"include": [
"src"
],
"compilerOptions": {
"outDir": "dist",
"rootDir": "src"
Expand All @@ -11,9 +13,6 @@
},
{
"path": "../rspack-dev-server"
},
{
"path": "../rspack-plugin-react-refresh"
}
]
}
}
2 changes: 1 addition & 1 deletion packages/rspack-dev-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"typescript": "5.0.2",
"@rspack/core": "workspace:*",
"@rspack/dev-server": "workspace:*",
"@rspack/plugin-react-refresh": "workspace:*",
"@rspack/plugin-react-refresh": "1.0.0-beta.5",
"@types/connect-history-api-fallback": "1.5.4",
"@types/express": "4.17.21",
"@types/mime-types": "2.1.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/rspack-dev-server/tests/normalizeOptions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe.skip("normalize options snapshot", () => {

it("shouldn't have reactRefreshEntry.js by default when in production mode", async () => {
const reactRefreshEntry =
"<prefix>/rspack-plugin-react-refresh/client/reactRefreshEntry.js";
"plugin-react-refresh/client/reactRefreshEntry.js";
const entries1 = await getAdditionEntries(
{},
{
Expand Down
22 changes: 0 additions & 22 deletions packages/rspack-lite-tapable/LICENSE

This file was deleted.

16 changes: 0 additions & 16 deletions packages/rspack-lite-tapable/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions packages/rspack-lite-tapable/api-extractor.json

This file was deleted.

Loading
Loading