diff --git a/.circleci/config.yml b/.circleci/config.yml index 7d93705..c4d2cb9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -55,6 +55,9 @@ jobs: - run: &test name: Test command: npm run shim:test + - run: &test_integration + name: Test-Integration + command: npm run shim:test-integration lint_and_test_node_10: <<: *lint_and_test diff --git a/src/utilities.js b/src/utilities.js index 9084bc0..bef056d 100644 --- a/src/utilities.js +++ b/src/utilities.js @@ -31,7 +31,7 @@ export function assert(condition, message) { export function cleanupSource(src) { // Restore eval which is modified by esm module. // (0, eval) => (0, _.e) - src = src.replace(/\(0, _[^.]+\.e\)/g, '(0, eval)'); + src = src.replace(/\(0,\s*_[^.]+\.e\)/g, '(0, eval)'); // Restore Reflect which is modified by esm module. // Reflect => _.e.Reflect