diff --git a/packages/quill/playwright.config.ts b/packages/quill/playwright.config.ts index 51ae860f0d..d41cef07e4 100644 --- a/packages/quill/playwright.config.ts +++ b/packages/quill/playwright.config.ts @@ -27,11 +27,11 @@ export default defineConfig({ { name: 'Safari', use: { ...devices['Desktop Safari'] } }, ], webServer: { - command: `npx webpack serve --config test/e2e/__dev_server__/webpack.config.js --env port=${port}`, + command: `npx webpack serve --config test/e2e/__dev_server__/webpack.config.ts --env port=${port}`, port, ignoreHTTPSErrors: true, reuseExistingServer: !process.env.CI, stdout: 'ignore', - stderr: 'ignore', + stderr: 'pipe', }, }); diff --git a/packages/quill/test/e2e/__dev_server__/index.html b/packages/quill/test/e2e/__dev_server__/index.html index 8c3e7be074..f69d3ffbeb 100644 --- a/packages/quill/test/e2e/__dev_server__/index.html +++ b/packages/quill/test/e2e/__dev_server__/index.html @@ -7,6 +7,8 @@ Quill E2E Tests + + diff --git a/packages/quill/test/e2e/__dev_server__/webpack.config.ts b/packages/quill/test/e2e/__dev_server__/webpack.config.ts index 783ae6d057..babd22724c 100644 --- a/packages/quill/test/e2e/__dev_server__/webpack.config.ts +++ b/packages/quill/test/e2e/__dev_server__/webpack.config.ts @@ -3,6 +3,7 @@ import HtmlWebpackPlugin from 'html-webpack-plugin'; import common from '../../../webpack.common'; import { merge } from 'webpack-merge'; import type { Configuration } from 'webpack'; +import 'webpack-dev-server'; export default (env: Record) => merge(common, { @@ -11,7 +12,7 @@ export default (env: Record) => publicPath: '/', filename: 'index.html', template: path.resolve(__dirname, 'index.html'), - chunks: ['quill.js', 'quill.core', 'quill.snow'], + chunks: ['quill'], inject: 'head', scriptLoading: 'blocking', }), diff --git a/packages/quill/webpack.common.ts b/packages/quill/webpack.common.ts index 7c57a0b613..c167201b8c 100644 --- a/packages/quill/webpack.common.ts +++ b/packages/quill/webpack.common.ts @@ -40,6 +40,7 @@ export default { library: { name: 'Quill', type: 'umd', + export: 'default', }, path: resolve(__dirname, 'dist/dist'), clean: true,