Просмотр исходного кода

Compile modules ES code with webpack

Allows for bundling of third-party modules and prevents error when using
import/export syntax outside of type="module" script
Alasdair Smith 8 лет назад
Родитель
Сommit
f544cebb0a
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      services/web/karma.conf.js

+ 2 - 1
services/web/karma.conf.js

@@ -32,7 +32,8 @@ module.exports = function (config) {
     preprocessors: {
       // Run ES test files through webpack (which will then include source
       // files in bundle)
-      'test/unit_frontend/es/**/*.js': ['webpack']
+      'test/unit_frontend/es/**/*.js': ['webpack'],
+      'modules/**/test/unit_frontend/es/**/*.js': ['webpack']
     },
     frameworks: ['requirejs', 'mocha', 'chai-sinon'],
     // Configure webpack in the tests