From edf4408f79657b4c02b384b51c7dce3282dcadde Mon Sep 17 00:00:00 2001 From: bluwy Date: Thu, 23 Jun 2022 11:20:54 +0800 Subject: [PATCH] chore: test lib umd and iife regex --- playground/lib/vite.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/playground/lib/vite.config.js b/playground/lib/vite.config.js index f4cacb9d73d3cc..d9fb932f535ebb 100644 --- a/playground/lib/vite.config.js +++ b/playground/lib/vite.config.js @@ -5,6 +5,12 @@ const path = require('path') * @type {import('vite').UserConfig} */ module.exports = { + esbuild: { + supported: { + // Force esbuild inject helpers to test regex + 'object-rest-spread': false + } + }, build: { rollupOptions: { output: {