fix: transpile import() for testing in node

This commit is contained in:
Oliver Eyton-Williams
2020-01-16 15:47:23 +01:00
committed by mrugesh
parent ebc6197c54
commit a27992a8b6
3 changed files with 71 additions and 60 deletions

View File

@ -9,6 +9,7 @@ require('@babel/register')({
root: clientPath,
babelrc: false,
presets: ['@babel/preset-env'],
plugins: ['dynamic-import-node'],
ignore: [/node_modules/],
only: [clientPath]
});