Skip to content
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Remove support for `bsconfig.json`. https://github.com/rescript-lang/rescript/pull/8187
- `Int.fromString` and `Float.fromString` use stricter number parsing and no longer uses an explicit radix argument, but instead supports parsing hexadecimal, binary and exponential notation.
- Remove the deprecated module system names `es6` and `es6-global` (superseded by `esmodule`). https://github.com/rescript-lang/rescript/pull/8205
- Default to module system `esmodule`. https://github.com/rescript-lang/rescript/pull/8213
- Remove `external-stdlib` configuration option from `rescript.json`. This option was rarely used and is no longer supported.
- `js-post-build` now passes the correct output file path based on `in-source` configuration: when `in-source: true`, the path next to the source file is passed; when `in-source: false`, the path in the `lib/<module>/` directory is passed. Additionally, stdout and stderr from the post-build command are now logged. https://github.com/rescript-lang/rescript/pull/8190
- `js-post-build` command now runs in the directory containing the `rescript.json` where it is defined, instead of the unpredictable build invocation directory. This provides consistent behavior in monorepos. https://github.com/rescript-lang/rescript/pull/8195
Expand Down
2 changes: 1 addition & 1 deletion docs/docson/build-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"definitions": {
"module-format": {
"enum": ["esmodule", "commonjs"],
"description": "Output module format. Default: commonjs."
"description": "Output module format. Default: esmodule."
},
"suffix-spec": {
"type": "string",
Expand Down
4 changes: 3 additions & 1 deletion rewatch/CompilerConfigurationSpec.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ stdout and stderr from the command are logged.

### Module-Format

enum: "commonjs" | "esmodule"
enum: "esmodule" | "commonjs"

default: "esmodule"

### Suffix

Expand Down
2 changes: 1 addition & 1 deletion rewatch/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ impl Config {
pub fn get_package_specs(&self) -> Vec<PackageSpec> {
match self.package_specs.clone() {
None => vec![PackageSpec {
module: PackageModule::CommonJs,
module: PackageModule::EsModule,
in_source: true,
suffix: Some(".js".to_string()),
}],
Expand Down
Loading