@@ -26,6 +26,15 @@ as well.
26
26
[ API reference] ( https://jasmine.github.io/api/npm/4.0/Jasmine ) is considered
27
27
a private API.
28
28
29
+ * ES module support is enabled by default, but can still be disabled by
30
+ adding ` jsLoader: "require" ` to the configuration. ` jsLoader: "import" ` is
31
+ now a no-op.
32
+
33
+ This change breaks loading of files with extensions that aren't supported by
34
+ dynamic ` import() ` , such as ` .jsx ` . If you have specs or source files with
35
+ such extensions, you can either rename the files to ` .js ` or add
36
+ ` jsLoader: "require" ` to your Jasmine config file.
37
+
29
38
* Config files can be ES modules. This is a breaking change because it requires
30
39
` Jasmine#loadConfigFile ` to be async.
31
40
@@ -57,20 +66,9 @@ as well.
57
66
58
67
## New features and bugfixes
59
68
60
- * Full support for ES modules in the default configuration:
61
- * ES module support is enabled by default, but can still be disabled by
62
- adding ` jsLoader: "require" ` to the configuration. ` jsLoader: "import" ` is
63
- now a no-op.
64
-
65
- We think it's highly unlikely that this change will break anything. If it
66
- does (i.e. your code works with ` jsLoader: "require" ` but not without it),
67
- please [ let us know] ( https://github.com/jasmine/jasmine-npm/issues/new ) .
68
- This will help us understand whether the ` jsLoader ` config property is still
69
- needed.
70
-
71
- * Files listed in the ` requires ` config property can be ES modules
69
+ * Files listed in the ` requires ` config property can be ES modules
72
70
73
- * Reporters specified with ` --reporter= ` can be ES modules.
71
+ * Reporters specified with ` --reporter= ` can be ES modules.
74
72
75
73
* Allow use without creating globals.
76
74
* See < https://jasmine.github.io/api/npm/4.0/JasmineOptions.html#globals > .
0 commit comments