You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,12 @@
1
1
# Changelog
2
2
3
+
## v1.3.0
4
+
5
+
-[Introduce meaningful error when importing TypeScript from `node_modules`](https://github.com/TypeStrong/ts-loader/pull/399)
6
+
-[Introduce `entryFileIsJs` loader option which allows having an entry file which is js.](https://github.com/TypeStrong/ts-loader/pull/399) resolves #388 and #401 - thanks @Wykks and @pqr.
7
+
8
+
NB Previously the `entryFileIsJs` option was on by default when `allowJs` was true. Now it has to be specified directly. Strictly speaking this is a breaking change; however given this is a rarely used option which exists for what is arguably an edge case this is being added without moving to 2.0. If this breaks people then we'll never do this again; I'd be surprised if anyone is relying on this though so we're taking a chance. Related tests have been suffixed "-entryFileIsJs" in the test name.
9
+
3
10
## v1.2.2
4
11
5
12
-[Re-exported const enums no longer break emit in watch mode](https://github.com/TypeStrong/ts-loader/pull/377)[#376] - thanks @smphhh
Copy file name to clipboardExpand all lines: README.md
+3
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,9 @@ Advanced option to force files to go through different instances of the
179
179
TypeScript compiler. Can be used to force segregation between different parts
180
180
of your code.
181
181
182
+
#### entryFileIsJs *(boolean) (default=false)*
183
+
184
+
To be used in concert with the `allowJs` compiler option. If your entry file is JS then you'll need to set this option to true. Please note that this is rather unusual and will generally not be necessary when using `allowJs`.
182
185
183
186
#### appendTsSuffixTo *(RegExp[]) (default=[])*
184
187
A list of regular expressions to be matched against filename. If filename matches one of the regular expressions, a `.ts` suffix will be appended to that filename.
? "\nYou should not need to recompile .ts files in node_modules.\nPlease contact the package author to advise them to use --declaration --outDir.\nMore https://github.com/Microsoft/TypeScript/issues/12358"
37
+
: "";
38
+
thrownewError(`Typescript emitted no output for ${filePath}.${additionalGuidance}`);
- test/someFeature/expectedOutput/patch0/bundle.js - *bundle after applying patch*
75
75
- test/someFeature/expectedOutput/patch0/output.txt - *output after applying patch*
76
+
77
+
## Flaky tests
78
+
79
+
Some of the tests in the pack are flaky. For the most part the failures they occasionally experience are not significant. If you want a test to be allowed to fail without failing the overall build whilst still seeing the output then place a file with the name `_FLAKY_` in the root of that particular test.
0 commit comments