Skip to content

Commit a8ad0f6

Browse files
author
wuhaolin
committed
docs: must use ES6 module syntax
1 parent ea2d7b2 commit a8ad0f6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,22 @@ module.exports = {
3232
{
3333
test: /\.tsx?$/,
3434
use: [
35-
[
36-
'ui-component-loader', {
35+
'ts-loader',
36+
{
37+
loader: 'ui-component-loader',
38+
options: {
3739
'lib': 'antd',
3840
'style': 'style/index.css',
3941
}
40-
],
41-
'ts-loader'
42+
},
4243
],
4344
include: path.resolve(__dirname, 'node_modules/antd')
4445
},
4546
]
4647
},
4748
};
4849
```
50+
> The order of loaders has no require, but the source code pass to ui-component-loader must use ES6 module syntax.
4951
5052
## Options
5153
- **lib**: library want to replace,value is name in npm.

0 commit comments

Comments
 (0)