Skip to content

Commit 7ce4aae

Browse files
committed
revert the changes for ci
1 parent f0a1c30 commit 7ce4aae

File tree

4 files changed

+14
-44
lines changed

4 files changed

+14
-44
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
"@rollup/plugin-node-resolve": "^15.2.3",
8888
"chai": "^4.3.7",
8989
"codecov": "^3.8.3",
90-
"copy-files-from-to": "3.8.0",
90+
"copy-files-from-to": "^3.9.0",
9191
"eslint": "^8.9.0",
9292
"jsdoc": "^3.6.10",
9393
"karma": "^6.4.2",

rollup.config.browser.cjs

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,16 @@
1+
12
const babel = require('@rollup/plugin-babel').default;
23

34
const builds = {
4-
input: ['src/main/js/index.js'],
5-
6-
// ✅ MediaPipe bundle edilmesin
7-
external: [
8-
'@mediapipe/selfie_segmentation'
9-
],
10-
11-
// ✅ loglevel "this is undefined" warning
12-
onwarn(warning, warn) {
13-
if (
14-
warning.code === 'THIS_IS_UNDEFINED' &&
15-
warning.id &&
16-
warning.id.includes('loglevel.min.js')
17-
) {
18-
return;
19-
}
20-
warn(warning);
21-
},
22-
23-
output: [
24-
{
25-
name: 'webrtc_adaptor',
26-
file: 'dist/browser/webrtc_adaptor.js',
27-
format: 'umd'
28-
}
29-
],
5+
input: [ 'src/main/js/index.js'],
6+
output: [{
7+
name: 'webrtc_adaptor',
8+
file: 'dist/browser/webrtc_adaptor.js',
9+
format: 'umd'
10+
},
11+
],
12+
plugins: [babel({ babelHelpers: 'bundled' })]
3013

31-
plugins: [
32-
babel({ babelHelpers: 'bundled' })
33-
]
3414
};
3515

36-
module.exports = builds;
16+
module.exports = builds

rollup.config.module.cjs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,7 @@ const builds = {
3232
nodeResolve(),
3333
commonjs(),
3434
css()
35-
],
36-
// ✅ loglevel "this is undefined" warning
37-
onwarn(warning, warn) {
38-
if (
39-
warning.code === 'THIS_IS_UNDEFINED' &&
40-
warning.id &&
41-
warning.id.includes('loglevel.min.js')
42-
) {
43-
return;
44-
}
45-
warn(warning);
46-
},
35+
]
4736

4837
};
4938

src/main/webapp/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
*-v2.html
1+
*-v2.html
2+
v2/

0 commit comments

Comments
 (0)