[BD-10] remove edx-pattern-library from JS bundles (#24165)

Co-authored-by: Sankar Raj <sankar.raj@crystaldelta.com>
This commit is contained in:
Sankar Raj
2020-07-27 21:49:15 +05:30
committed by GitHub
parent 68d1c7f78c
commit d00633e942
2 changed files with 5 additions and 7 deletions

View File

@@ -61,25 +61,24 @@ var options = {
],
libraryFiles: [
{pattern: 'common_static/edx-pattern-library/js/**/*.js'},
{pattern: 'common_static/edx-ui-toolkit/js/**/*.js'}
],
// Make sure the patterns in sourceFiles and specFiles do not match the same file.
// Otherwise Istanbul which is used for coverage tracking will cause tests to not run.
sourceFiles: [
{ pattern: 'src/xmodule.js', included: true, ignoreCoverage: true }, // To prevent getting instrumented twice.
{pattern: 'src/xmodule.js', included: true, ignoreCoverage: true}, // To prevent getting instrumented twice.
// Load these before the xmodules that use them
{ pattern: 'src/javascript_loader.js', included: true },
{ pattern: 'src/collapsible.js', included: true },
{pattern: 'src/javascript_loader.js', included: true},
{pattern: 'src/collapsible.js', included: true},
// Load everything else
{pattern: 'src/**/!(video)/!(poll|time).js', included: true}
],
specFiles: [
{pattern: 'spec/helper.js', included: true, ignoreCoverage: true}, // Helper which depends on source files.
{ pattern: 'spec/**/!(video)/*.js', included: true },
{ pattern: 'spec/!(time_spec|video_helper).js', included: true }
{pattern: 'spec/**/!(video)/*.js', included: true},
{pattern: 'spec/!(time_spec|video_helper).js', included: true}
],
fixtureFiles: [

View File

@@ -60,7 +60,6 @@ var commonsChunkPluginIndex = webpackConfig[0].plugins.findIndex(function(plugin
var commonFiles = {
libraryFiles: [
{pattern: 'common/js/vendor/**/*.js'},
{pattern: 'edx-pattern-library/js/**/*.js'},
{pattern: 'edx-ui-toolkit/js/**/*.js'},
{pattern: 'xmodule_js/common_static/common/js/**/!(*spec).js'},
{pattern: 'xmodule_js/common_static/js/**/!(*spec).js'},