File tree Expand file tree Collapse file tree 5 files changed +704
-456
lines changed
test/bundler_smoke_tests/lib Expand file tree Collapse file tree 5 files changed +704
-456
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ async function runTests() {
2424 spawn (
2525 command ,
2626 [ test ] . concat ( args ) ,
27- { stdio : "inherit" }
27+ { shell : true , stdio : "inherit" }
2828 ) ;
2929 } ) ;
3030}
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ export default [
1111 ignores : [
1212 "external" ,
1313 "**/tmp" ,
14- "test/data/json_obj.js"
14+ "test/data/json_obj.js" ,
15+ "test/data/jquery-*.js"
1516 ]
1617 } ,
1718
@@ -147,7 +148,6 @@ export default [
147148 "test/unit/**"
148149 ] ,
149150 ignores : [
150- "test/data/jquery-3.7.1.js" ,
151151 "test/data/badcall.js" ,
152152 "test/data/badjson.js" ,
153153 "test/data/support/csp.js" ,
@@ -349,6 +349,28 @@ export default [
349349 }
350350 } ,
351351
352+ {
353+ files : [
354+ "dist/jquery.slim.js" ,
355+ "dist/jquery.factory.slim.js" ,
356+ "dist-module/jquery.slim.module.js" ,
357+ "dist-module/jquery.factory.slim.module.js"
358+ ] ,
359+ rules : {
360+
361+ // Rollup is now smart enough to remove the use
362+ // of parameters if the argument is not passed
363+ // anywhere in the build.
364+ // The removal of effects in the slim build
365+ // results in some parameters not being used,
366+ // which can be safely ignored.
367+ "no-unused-vars" : [
368+ "error" ,
369+ { args : "none" }
370+ ]
371+ }
372+ } ,
373+
352374 {
353375 files : [
354376 "src/wrapper.js" ,
You can’t perform that action at this time.
0 commit comments