mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05: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:
parent
13dfb8d6db
commit
f544cebb0a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue