File tree Expand file tree Collapse file tree 5 files changed +39
-2
lines changed Expand file tree Collapse file tree 5 files changed +39
-2
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,5 @@ node_modules/
4
4
.idea /
5
5
.vscode /
6
6
backup /
7
+ src /CubismSdkForWeb- * /
8
+ build /CubismSdkForWeb- * /
Original file line number Diff line number Diff line change @@ -12,5 +12,13 @@ export default tseslint.config(
12
12
quotes : [ 'error' , 'single' ] ,
13
13
indent : [ 'error' , 2 ] ,
14
14
}
15
+ } ,
16
+ {
17
+ ignores : [
18
+ 'src/CubismSdkForWeb-*/**' ,
19
+ 'dist/**' ,
20
+ 'build/**' ,
21
+ 'node_modules/**'
22
+ ]
15
23
}
16
24
) ;
Original file line number Diff line number Diff line change 36
36
},
37
37
"devDependencies" : {
38
38
"@eslint/js" : " 9.26.0" ,
39
+ "@rollup/plugin-alias" : " ^5.1.1" ,
39
40
"@rollup/plugin-terser" : " 0.4.4" ,
40
41
"@types/node" : " 22.15.14" ,
41
42
"eslint" : " 9.26.0" ,
Original file line number Diff line number Diff line change 1
1
import terser from '@rollup/plugin-terser' ;
2
+ import alias from '@rollup/plugin-alias' ;
3
+ import path from 'path' ;
4
+ import { fileURLToPath } from 'url' ;
5
+
6
+ const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) ) ;
2
7
3
8
function banner ( ) {
4
9
@@ -22,8 +27,21 @@ export default {
22
27
output : {
23
28
dir : 'dist/' ,
24
29
format : 'esm' ,
30
+ chunkFileNames : 'chunk/[name].js' ,
25
31
} ,
26
32
plugins : [
33
+ alias ( {
34
+ entries : [
35
+ {
36
+ find : '@demo' ,
37
+ replacement : path . resolve ( __dirname , 'build/CubismSdkForWeb-5-r.4/Samples/TypeScript/Demo/src/' )
38
+ } ,
39
+ {
40
+ find : '@framework' ,
41
+ replacement : path . resolve ( __dirname , 'build/CubismSdkForWeb-5-r.4/Framework/src/' )
42
+ }
43
+ ]
44
+ } ) ,
27
45
banner ( ) ,
28
46
terser ( ) ,
29
47
] ,
Original file line number Diff line number Diff line change 7
7
"outDir" : " build" ,
8
8
"esModuleInterop" : true ,
9
9
"forceConsistentCasingInFileNames" : true ,
10
- "strict" : true ,
10
+ "strict" : false ,
11
11
"skipLibCheck" : true ,
12
12
"removeComments" : true ,
13
- "allowJs" : true
13
+ "allowJs" : true ,
14
+ "paths" : {
15
+ "@framework/*" : [
16
+ " ./src/CubismSdkForWeb-5-r.4/Framework/src/*"
17
+ ],
18
+ "@demo/*" : [
19
+ " ./src/CubismSdkForWeb-5-r.4/Samples/TypeScript/Demo/src/*"
20
+ ]
21
+ }
14
22
},
15
23
"include" : [" src" ],
16
24
"exclude" : [" node_modules" , " build" , " dist" ]
You can’t perform that action at this time.
0 commit comments