ko 6.6.1-beta.3 → 6.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/types.d.ts +2 -8
- package/lib/webpack/loaders/script.js +2 -2
- package/package.json +1 -1
package/lib/types.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Pattern } from 'copy-webpack-plugin';
|
|
|
2
2
|
import { Plugin } from 'postcss';
|
|
3
3
|
import { IKeys, IOpts } from 'ko-lints';
|
|
4
4
|
import { IOpts as AutoPolyfillsWebpackPluginOptions } from '@dtinsight/auto-polyfills-webpack-plugin';
|
|
5
|
+
import { ClientConfiguration } from 'webpack-dev-server';
|
|
5
6
|
export type IOptions = {
|
|
6
7
|
/**
|
|
7
8
|
* The current working directory.
|
|
@@ -89,14 +90,7 @@ export type IOptions = {
|
|
|
89
90
|
host: string;
|
|
90
91
|
port: number;
|
|
91
92
|
staticPath?: string;
|
|
92
|
-
client?:
|
|
93
|
-
logging: 'log' | 'info' | 'warn' | 'error' | 'none' | 'verbose';
|
|
94
|
-
overlay: boolean | object;
|
|
95
|
-
progress: boolean;
|
|
96
|
-
reconnect: boolean | number;
|
|
97
|
-
webSocketTransport: 'ws' | 'sockjs' | string;
|
|
98
|
-
webSocketURL: string | object;
|
|
99
|
-
};
|
|
93
|
+
client?: boolean | ClientConfiguration | undefined;
|
|
100
94
|
historyApiFallback?: any;
|
|
101
95
|
compilationSuccessInfo?: {
|
|
102
96
|
messages: string[];
|
|
@@ -17,7 +17,7 @@ class Script {
|
|
|
17
17
|
{
|
|
18
18
|
test: /\.worker.[jt]s$/,
|
|
19
19
|
loader: this.WORKER_LOADER,
|
|
20
|
-
include: (input) =>
|
|
20
|
+
include: (input) => /dt-react-monaco-editor[\\/]lib[\\/]languages/.test(input),
|
|
21
21
|
options: {
|
|
22
22
|
inline: 'fallback',
|
|
23
23
|
},
|
|
@@ -26,7 +26,7 @@ class Script {
|
|
|
26
26
|
test: /\.m?(t|j)sx?$/,
|
|
27
27
|
include: (input) => {
|
|
28
28
|
// internal modules dt-common compatible
|
|
29
|
-
if (
|
|
29
|
+
if (/node_modules[\\/]dt-common[\\/]src[\\/]/.test(input)) {
|
|
30
30
|
return true;
|
|
31
31
|
}
|
|
32
32
|
else if (input.includes('antlr4-c3')) {
|