move browser-only rrdom features to the new rrdom package (#913)

This commit is contained in:
yz-yu
2026-04-01 12:00:00 +08:00
committed by GitHub
parent eec8d6f717
commit 7662d4e0fb
31 changed files with 707 additions and 554 deletions

View File

@@ -27,8 +27,8 @@ import {
RRCanvasElement,
RRDocument,
RRElement,
RRNode,
} from '../src/virtual-dom';
BaseRRNode as RRNode,
} from '../src';
const _typescript = (typescript as unknown) as typeof typescript.default;
const printRRDomCode = `
@@ -219,9 +219,9 @@ describe('RRDocument for browser environment', () => {
beforeAll(async () => {
browser = await puppeteer.launch();
const bundle = await rollup.rollup({
input: path.resolve(__dirname, '../src/virtual-dom.ts'),
input: path.resolve(__dirname, '../src/index.ts'),
plugins: [
resolve(),
(resolve() as unknown) as rollup.Plugin,
(_typescript({
tsconfigOverride: { compilerOptions: { module: 'ESNext' } },
}) as unknown) as rollup.Plugin,