-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/high-resolution-screenshot
- Loading branch information
Showing
291 changed files
with
41,452 additions
and
21,552 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
reject: | ||
# API break | ||
- "gl-matrix" | ||
- "@types/gl-matrix" | ||
- "codemirror" |
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
8 changes: 4 additions & 4 deletions
8
...ools/webpack/configuration_with_define.js → ...tools/rspack/configuration_with_define.js
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
// Converts a webpack configuration that optionally contains an extra `define` | ||
// property into a regular webpack configuration with an added `DefinePlugin`. | ||
// Converts an rspack configuration that optionally contains an extra `define` | ||
// property into a regular rspack configuration with an added `DefinePlugin`. | ||
|
||
import webpack from "webpack"; | ||
import { DefinePlugin } from "@rspack/core"; | ||
|
||
export function normalizeConfigurationWithDefine(config) { | ||
let { define, plugins, ...rest } = config; | ||
if (define !== undefined && Object.keys(define).length > 0) { | ||
plugins ??= []; | ||
plugins.push(new webpack.DefinePlugin(define)); | ||
plugins.push(new DefinePlugin(define)); | ||
} | ||
return { plugins, ...rest }; | ||
} |
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,12 @@ | ||
// This module is specified as the rspack config module when `cli.ts` invokes | ||
// `@rspack/cli` programmatically. | ||
// | ||
// It simply returns the configuration previously set by `cli.ts`. | ||
|
||
let config = undefined; | ||
|
||
export function setConfig(newConfig) { | ||
config = newConfig; | ||
} | ||
|
||
export default (...args) => config(...args); |
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.