Merge branch 'modern-bundler-integration' into release-3.4

This commit is contained in:
Nacho Codoñer
2025-09-19 14:28:30 +02:00
18 changed files with 27 additions and 18 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@meteorjs/rspack",
"version": "0.0.52",
"version": "0.0.53",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@meteorjs/rspack",
"version": "0.0.52",
"version": "0.0.53",
"license": "ISC",
"dependencies": {
"ignore-loader": "^0.1.2",

View File

@@ -1,6 +1,6 @@
{
"name": "@meteorjs/rspack",
"version": "0.0.52",
"version": "0.0.53",
"description": "Configuration logic for using Rspack in Meteor projects",
"main": "index.js",
"type": "commonjs",

View File

@@ -5,7 +5,7 @@
export const DEFAULT_RSPACK_VERSION = '1.5.3';
export const DEFAULT_METEOR_RSPACK_VERSION = '0.0.52';
export const DEFAULT_METEOR_RSPACK_VERSION = '0.0.53';
export const DEFAULT_METEOR_RSPACK_REACT_HMR_VERSION = '1.4.3';

View File

@@ -17,7 +17,7 @@
"vue-router": "^4.2.5"
},
"devDependencies": {
"@meteorjs/rspack": "^0.0.52",
"@meteorjs/rspack": "^0.0.53",
"@rspack/cli": "^1.4.8",
"@rspack/core": "^1.4.8",
"@tailwindcss/postcss": "^4.1.12",

View File

@@ -19,9 +19,13 @@ describe('ReactRouter App Bundling /', () => {
process.env.METEOR_PACKAGE_DIRS = '';
},
customAssertions: {
afterInit: async ({ result }) => {
await waitForMeteorOutput(result.outputLines, /.*babel-plugin-react-compiler.*/);
},
afterRun: async ({ result, port }) => {
await waitForReactEnvs(result.outputLines, { isTsxEnabled: true });
await waitForMeteorOutput(result.outputLines, /.*babel-plugin-react-compiler.*/);
// negated as cached output (babel.config.js)
await waitForMeteorOutput(result.outputLines, /.*babel-plugin-react-compiler.*/, { negate: true });
await assert404Page(port);
// Less styles support
await assertBodyStyles({

View File

@@ -200,6 +200,11 @@ export function testMeteorRspackBundler(options) {
await assertFileExist(appDir, '.gitignore', { content: buildDir });
await assertFileExist(appDir, configFile, { content: '@meteorjs/rspack' });
// Run custom assertions if provided
if (customAssertions && customAssertions.afterInit) {
await customAssertions.afterInit({ tempDir, port, meteorProcess, result });
}
// Kill the meteor process
await killMeteorProcess(meteorProcess);

View File

@@ -20,7 +20,7 @@
"devDependencies": {
"@graphql-tools/webpack-loader": "^7.0.0",
"@rsdoctor/rspack-plugin": "^1.2.3",
"@meteorjs/rspack": "^0.0.52",
"@meteorjs/rspack": "^0.0.53",
"@rspack/cli": "^1.5.3",
"@rspack/core": "^1.5.3",
"@rspack/plugin-react-refresh": "^1.4.3",

View File

@@ -17,7 +17,7 @@
"devDependencies": {
"@babel/preset-env": "^7.28.3",
"@babel/preset-react": "^7.23.3",
"@meteorjs/rspack": "^0.0.52",
"@meteorjs/rspack": "^0.0.53",
"@rsdoctor/rspack-plugin": "^1.2.3",
"@rspack/cli": "^1.5.3",
"@rspack/core": "^1.5.3",

View File

@@ -14,7 +14,7 @@
"meteor-node-stubs": "^1.2.12"
},
"devDependencies": {
"@meteorjs/rspack": "^0.0.52",
"@meteorjs/rspack": "^0.0.53",
"@rsdoctor/rspack-plugin": "^1.2.3",
"@rspack/cli": "^1.5.3",
"@rspack/core": "^1.5.3",

View File

@@ -21,7 +21,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@meteorjs/rspack": "^0.0.52",
"@meteorjs/rspack": "^0.0.53",
"@rsdoctor/rspack-plugin": "^1.2.3",
"@rspack/cli": "^1.5.3",
"@rspack/core": "^1.5.3",

View File

@@ -15,7 +15,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@meteorjs/rspack": "^0.0.52",
"@meteorjs/rspack": "^0.0.53",
"@rsdoctor/rspack-plugin": "^1.2.3",
"@rspack/cli": "^1.5.3",
"@rspack/core": "^1.5.3",

View File

@@ -12,7 +12,7 @@
"meteor-node-stubs": "^1.2.12"
},
"devDependencies": {
"@meteorjs/rspack": "^0.0.52",
"@meteorjs/rspack": "^0.0.53",
"@rsdoctor/rspack-plugin": "^1.2.3",
"@rspack/cli": "^1.5.3",
"@rspack/core": "^1.5.3",

View File

@@ -15,7 +15,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@meteorjs/rspack": "^0.0.52",
"@meteorjs/rspack": "^0.0.53",
"@rsdoctor/rspack-plugin": "^1.2.3",
"@rspack/cli": "^1.5.3",
"@rspack/core": "^1.5.3",

View File

@@ -14,7 +14,7 @@
"picocolors": "^1.1.1"
},
"devDependencies": {
"@meteorjs/rspack": "^0.0.52",
"@meteorjs/rspack": "^0.0.53",
"@rsdoctor/rspack-plugin": "^1.2.3",
"@rspack/cli": "^1.5.3",
"@rspack/core": "^1.5.3",

View File

@@ -13,7 +13,7 @@
"meteor-node-stubs": "^1.2.12"
},
"devDependencies": {
"@meteorjs/rspack": "^0.0.52",
"@meteorjs/rspack": "^0.0.53",
"@rsdoctor/rspack-plugin": "^1.2.3",
"@rspack/cli": "^1.5.3",
"@rspack/core": "^1.5.3",

View File

@@ -16,7 +16,7 @@
"react-dom": "^17.0.2"
},
"devDependencies": {
"@meteorjs/rspack": "^0.0.52",
"@meteorjs/rspack": "^0.0.53",
"@rsdoctor/rspack-plugin": "^1.2.3",
"@rspack/cli": "^1.5.3",
"@rspack/core": "^1.5.3",

View File

@@ -15,7 +15,7 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@meteorjs/rspack": "^0.0.52",
"@meteorjs/rspack": "^0.0.53",
"@rsdoctor/rspack-plugin": "^1.2.3",
"@rspack/cli": "^1.5.3",
"@rspack/core": "^1.5.3",

View File

@@ -17,7 +17,7 @@
"vue-router": "^4.2.5"
},
"devDependencies": {
"@meteorjs/rspack": "^0.0.52",
"@meteorjs/rspack": "^0.0.53",
"@rsdoctor/rspack-plugin": "^1.2.3",
"@rspack/cli": "^1.5.3",
"@rspack/core": "^1.5.3",