File tree Expand file tree Collapse file tree 5 files changed +2412
-2120
lines changed
examples/react-native-project Expand file tree Collapse file tree 5 files changed +2412
-2120
lines changed Original file line number Diff line number Diff line change 22 "extends" : " @lcdev/tsconfig" ,
33 "compilerOptions" : {
44 "rootDir" : " ./src" ,
5- "outDir" : " ./dist"
5+ "outDir" : " ./dist" ,
6+ "lib" : [" dom" ]
67 },
78 "include" : [" src" ],
89 "exclude" : [" node_modules" ],
Original file line number Diff line number Diff line change 11import { join } from 'path' ;
22import { Compiler } from 'webpack' ;
3- import HtmlWebpackPlugin from 'html-webpack-plugin' ;
3+ import HtmlWebpackPlugin , { HtmlTagObject } from 'html-webpack-plugin' ;
44import type { ConfigLoadingOptions , SchemaLoadingOptions } from '@app-config/main' ;
55
66import { regex } from './loader' ;
@@ -91,7 +91,9 @@ export default class AppConfigPlugin implements Options {
9191 'AppConfigPlugin' ,
9292 async ( { headTags, ...html } ) => {
9393 // remove placeholder <script id="app-config"></script> if it exists
94- const newTags = headTags . filter ( ( { attributes } ) => attributes . id !== 'app-config' ) ;
94+ const newTags : HtmlTagObject [ ] = headTags . filter (
95+ ( { attributes } ) => attributes . id !== 'app-config' ,
96+ ) ;
9597
9698 newTags . push ( {
9799 tagName : 'script' ,
Original file line number Diff line number Diff line change 2727 "@lcdev/tsconfig" : " 0.1" ,
2828 "@types/react" : " 16" ,
2929 "@types/react-native" : " 0.63" ,
30- "typescript" : " 3 "
30+ "typescript" : " 4 "
3131 }
3232}
Original file line number Diff line number Diff line change 5656 "extends" : [
5757 " @lcdev/commitlint"
5858 ]
59+ },
60+ "volta" : {
61+ "node" : " 16.15.0"
5962 }
6063}
You can’t perform that action at this time.
0 commit comments