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

fix: remove bundler info #29

Merged
merged 1 commit into from
Jul 9, 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
80 changes: 1 addition & 79 deletions e2e/cases/alias/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,46 +1,7 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`alias should work 1`] = `
"var __webpack_modules__ = ({});
/************************************************************************/
// The module cache
var __webpack_module_cache__ = {};

// The require function
function __webpack_require__(moduleId) {

// Check if module is in cache
var cachedModule = __webpack_module_cache__[moduleId];
if (cachedModule !== undefined) {
return cachedModule.exports;
}
// Create a new module (and put it into the cache)
var module = (__webpack_module_cache__[moduleId] = {
exports: {}
});
// Execute the module function
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);

// Return the exports of the module
return module.exports;

}

/************************************************************************/
// webpack/runtime/rspack_version
(() => {
__webpack_require__.rv = function () {
return "1.0.0-canary-0b368b6-20240704171208";
};

})();
// webpack/runtime/rspack_unique_id
(() => {
__webpack_require__.ruid = "bundler=rspack@1.0.0-canary-0b368b6-20240704171208";

})();
/************************************************************************/
var __webpack_exports__ = {};
"var __webpack_exports__ = {};

;// CONCATENATED MODULE: ./e2e/cases/alias/src/a.ts
const a = 'hello world';
Expand All @@ -56,45 +17,6 @@ export { a };
exports[`alias should work 2`] = `
"(() => { // webpackBootstrap
"use strict";
var __webpack_modules__ = ({});
/************************************************************************/
// The module cache
var __webpack_module_cache__ = {};

// The require function
function __webpack_require__(moduleId) {

// Check if module is in cache
var cachedModule = __webpack_module_cache__[moduleId];
if (cachedModule !== undefined) {
return cachedModule.exports;
}
// Create a new module (and put it into the cache)
var module = (__webpack_module_cache__[moduleId] = {
exports: {}
});
// Execute the module function
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);

// Return the exports of the module
return module.exports;

}

/************************************************************************/
// webpack/runtime/rspack_version
(() => {
__webpack_require__.rv = function () {
return "1.0.0-canary-0b368b6-20240704171208";
};

})();
// webpack/runtime/rspack_unique_id
(() => {
__webpack_require__.ruid = "bundler=rspack@1.0.0-canary-0b368b6-20240704171208";

})();
/************************************************************************/
var __webpack_exports__ = {};

;// CONCATENATED MODULE: ./e2e/cases/alias/src/a.ts
Expand Down
9 changes: 9 additions & 0 deletions packages/core/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ export async function createInternalRsbuildConfig(): Promise<RsbuildConfig> {
},
tools: {
htmlPlugin: false,
rspack: {
experiments: {
rspackFuture: {
bundlerInfo: {
force: false,
},
},
},
},
},
output: {
filenameHash: false,
Expand Down
19 changes: 19 additions & 0 deletions packages/core/tests/__snapshots__/config.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config 1
"tools": {
"htmlPlugin": false,
"rspack": {
"experiments": {
"rspackFuture": {
"bundlerInfo": {
"force": false,
},
},
},
"externalsType": "commonjs",
"output": {
"library": {
Expand Down Expand Up @@ -65,6 +72,11 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config 1
"rspack": {
"experiments": {
"outputModule": true,
"rspackFuture": {
"bundlerInfo": {
"force": false,
},
},
},
"externalsType": "module",
"optimization": {
Expand Down Expand Up @@ -104,6 +116,13 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config 1
"tools": {
"htmlPlugin": false,
"rspack": {
"experiments": {
"rspackFuture": {
"bundlerInfo": {
"force": false,
},
},
},
"externalsType": "umd",
"output": {
"library": {
Expand Down
4 changes: 4 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading