From 85918cab9f6f360984d38d140473eab5f29fead6 Mon Sep 17 00:00:00 2001 From: Michael Wenzel Date: Sun, 21 Apr 2019 21:57:34 -0400 Subject: [PATCH] hardcode crossorigin script attribute --- plugins/ssr-plugin.js | 6 ++--- test/e2e/dynamic-import-app/test.js | 37 +++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/plugins/ssr-plugin.js b/plugins/ssr-plugin.js index b08c2348..df8431fa 100644 --- a/plugins/ssr-plugin.js +++ b/plugins/ssr-plugin.js @@ -113,9 +113,9 @@ const SSRBodyTemplate = createPlugin/*:: + els.every(el => el.crossOrigin === 'anonymous') + ), + 'non-module scripts have crossorigin attribute' + ); + + browser.close(); + proc.kill(); +}, 100000); + test('`fusion build` app with Safari user agent and same-origin', async () => { var env = Object.create(process.env); env.NODE_ENV = 'production';