run: npx playwright-webkit install-deps
if: matrix.NPM_SCRIPT == 'test:browser' && contains(matrix.BROWSERS, 'WebkitHeadless')
- - name: Build jQuery for Lint
- run: npm run build:all
- if: matrix.NPM_SCRIPT == 'test:browserless'
-
- name: Lint code
- run: npm run lint
+ run: npm run build:all && npm run lint
if: matrix.NODE_VERSION == '18.x'
- name: Prepare tests
};
}
-const fileOverrides = new Map();
-
-function setOverride( filePath, source ) {
-
- // We want normalized paths in overrides as they will be matched
- // against normalized paths in the file overrides Rollup plugin.
- fileOverrides.set( path.resolve( filePath ), source );
-}
-
function unique( array ) {
return [ ...new Set( array ) ];
}
} = {} ) {
const pureSlim = slim && !exclude.length && !include.length;
+ const fileOverrides = new Map();
+
+ function setOverride( filePath, source ) {
+
+ // We want normalized paths in overrides as they will be matched
+ // against normalized paths in the file overrides Rollup plugin.
+ fileOverrides.set( path.resolve( filePath ), source );
+ }
+
// Add the short commit hash to the version string
// when the version is not for a release.
if ( !version ) {
);
}
- const bundle = await rollup.rollup( {
- ...inputOptions,
- plugins: [ rollupFileOverrides( fileOverrides ) ]
- } );
-
const outputOptions = await getOutputRollupOptions( { esm, factory } );
if ( watch ) {
return watcher;
} else {
+ const bundle = await rollup.rollup( {
+ ...inputOptions,
+ plugins: [ rollupFileOverrides( fileOverrides ) ]
+ } );
+
const {
output: [ { code } ]
} = await bundle.generate( outputOptions );