diff --git a/build/release.sh b/build/release.sh index 5d13b43199c..29711a2e990 100644 --- a/build/release.sh +++ b/build/release.sh @@ -15,6 +15,9 @@ then # build VERSION=$VERSION npm run dist + # ssr test + node test/ssr/require.test.js + # publish theme echo "Releasing theme-chalk $VERSION ..." cd packages/theme-chalk diff --git a/test/ssr/require.test.js b/test/ssr/require.test.js new file mode 100644 index 00000000000..3584239a777 --- /dev/null +++ b/test/ssr/require.test.js @@ -0,0 +1,10 @@ +const path = require('path'); + +try { + process.env.VUE_ENV = 'server'; + require(path.join(process.env.PWD, './lib/index')); + console.log('SSR require test PASS'); +} catch (e) { + console.error('SSR require test error'); + throw Error(e); +}