mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user