2 Commits

Author SHA1 Message Date
68eb2e3ea1 chore: fix puppeteer/chromium issues in CI during testing
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2024-03-29 17:52:40 +01:00
141c48730a chore: small update to docs
Some checks failed
continuous-integration/drone/push Build is failing
2024-03-29 16:22:16 +01:00
6 changed files with 130 additions and 92 deletions

View File

@@ -12,13 +12,15 @@ steps:
environment: environment:
NPM_TOKEN: NPM_TOKEN:
from_secret: NPM_TOKEN from_secret: NPM_TOKEN
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
PUPPETEER_CHROME_ARGS: --disable-software-rasterizer --disable-dev-shm-usage --no-sandbox
commands: commands:
- apk add --no-cache chromium chromium-swiftshader
- npm install -g pnpm - npm install -g pnpm
- apk add --no-cache jq
- echo -e "\n//npm.cerxes.net/:_authToken=$NPM_TOKEN" >> ~/.npmrc - echo -e "\n//npm.cerxes.net/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- cat ~/.npmrc - cat ~/.npmrc
- npm profile get name --registry https://npm.cerxes.net - npm profile get name --registry https://npm.cerxes.net
- pnpm install - pnpm install
- pnpm run build - pnpm run build
- pnpm run ci:test - PUPPETEER_EXECUTABLE_PATH=$(which chromium) pnpm run ci:test
- pnpm publish --tag latest - pnpm publish --tag latest

View File

@@ -10,20 +10,23 @@
[![libera manifesto](https://img.shields.io/badge/libera-manifesto-lightgrey.svg)](https://liberamanifesto.com) [![libera manifesto](https://img.shields.io/badge/libera-manifesto-lightgrey.svg)](https://liberamanifesto.com)
# rollup-plugin-html-entry2 # rollup-plugin-html-entry2
| :warning: WARNING |
|:----------------------------------------------------------------------------------------------------------------------|
| **Experimental-stage** plugin. Expect bugs and missing features... |
| :warning: WARNING |
| :------------------------------------------------------------------- |
| **Renaming** Name might change in the future. Consider rollup-plugin-html-bundler |
| (because we're basically transforming rollup into a tool for bundling html, might not even contain any JS in the end) |
A(nother) rollup plugin that tries to teach Rollup to start from an HTML entry, and the use of (multiple) HTML files in general. > ⚠️ WARNING: **Experimental-stage** plugin ⚠️
> ---
> Expect bugs and missing features...
> ⚠️ **Renaming** ⚠️\
> Name might change in the future. Considering rollup-plugin-html-bundler
̇> (because we're basically transforming rollup into a tool for bundling html, might not even contain any JS in the end)
A(nother) [rollup](https://rollupjs.org) plugin that tries to teach Rollup to start from an HTML entry, and the use of (multiple) HTML files in general.
The goal is to include assets referenced by the HTML file into the build-process as to copy/inline where appropriate and The goal is to include assets referenced by the HTML file into the build-process as to copy/inline where appropriate and
optionally optimize them. Without having to seperatly copy them to the output directory. optionally optimize them. Without having to seperatly copy them to the output directory.
When building web-applications a HTML-file is simply the logical entry point into your application. \ When building web-applications a HTML-file is simply the logical entry point into your application. \
Inspired (and forked) by the original [@rollup/plugin-html](https://www.npmjs.com/package/@rollup/plugin-html), Inspired by (and forked from) the original [@rollup/plugin-html](https://www.npmjs.com/package/@rollup/plugin-html),
this plugin will also allow you to transform the source files by any HTML-templating engine such as [handlebars]. this plugin will also allow you to transform the source files by any HTML-templating engine such as [handlebars].
@@ -31,7 +34,7 @@ Please see [Supported Output Formats](#supported-output-formats) for information
## Requirements ## Requirements
This plugin requires an [LTS](https://github.com/nodejs/Release) Node version (v18.0.0+) and Rollup v3.?.?+. This plugin aims to support active [LTS](https://github.com/nodejs/Release) versions Node versions v18, v20 + Rollup v3 and up
## Install ## Install
@@ -59,7 +62,7 @@ export default {
!! To use 'import x from y' syntax you might need to set `"type": "module"` in your `package.json`. !! To use 'import x from y' syntax you might need to set `"type": "module"` in your `package.json`.
[Javascript modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) are the _preferred_ way of writing modern Javascript. [Javascript modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) are the _preferred_ way of writing modern Javascript.
Due to the early stage development of this plugin, old-style CommonJS modules are completely ignored for now. Due to the early stage development of this plugin, old-style CommonJS modules are completely ignored and unsupported for now.
Then call `rollup` either via the [CLI](https://www.rollupjs.org/guide/en/#command-line-reference) or the [API](https://www.rollupjs.org/guide/en/#javascript-api). Then call `rollup` either via the [CLI](https://www.rollupjs.org/guide/en/#command-line-reference) or the [API](https://www.rollupjs.org/guide/en/#javascript-api).
@@ -83,6 +86,9 @@ async function build() {
input: 'index.hbs', input: 'index.hbs',
plugins: [ plugins: [
html({ html({
include: [
'**/*.(html|hbs)',// html or handlebars
],
transform(src) { transform(src) {
return handlebars.compile(src)({a: 'a'}) return handlebars.compile(src)({a: 'a'})
} }
@@ -93,23 +99,29 @@ async function build() {
``` ```
## Supported Output Formats ## Supported Output Formats
By default, this plugin supports the `esm` (`es`). Any other format is currently untested as this plugin is in an early state, see [#status](#status) By default, this plugin supports the `esm` (`es`). Any other format is currently untested as this plugin is in an early state, see [#status](#status)
## Status ## Status
### (Rudimentarily) supported ### (Rudimentarily) supported
- Importing JS via `<script src="..." type="module">` tags - Importing JS via `<script src="..." type="module">` tags
- Importing assets using @rollup/plugin-url (which could use an update TBH)
- Compatibility with other plugins such as @rollup/plugin-node-resolve, @rollup/plugin-babel, @rollup/plugin-commonjs, @rollup/plugin-terser and rollup-plugin-livereload
- Inline scripts (i.e `<script>...</script>`) - Inline scripts (i.e `<script>...</script>`)
- Compatibility with other plugins such as :
- [@rollup/plugin-url](https://www.npmjs.com/package/@rollup/plugin-url) including using it for `<img src"..."/>` references
- [@rollup/plugin-node-resolve](https://www.npmjs.com/package/@rollup/plugin-node-resolve)
- [@rollup/plugin-babel](https://www.npmjs.com/package/@rollup/plugin-babel)
- [@rollup/plugin-commonjs](https://www.npmjs.com/package/@rollup/plugin-commonjs)
- [@rollup/plugin-typescript](https://www.npmjs.com/package/@rollup/plugin-typescript)
- [@rollup/plugin-terser](https://www.npmjs.com/package/@rollup/plugin-terser)
- [rollup-plugin-livereload](https://www.npmjs.com/package/rollup-plugin-livereload)
### Not (yet/properly) supported ### Not (yet/properly) supported
- Sourcemaps (inlined script) (dev-note: we're already including magic-string for this, but do not use it yet, neeeds refactoring) - Sourcemaps (inlined script) (dev-note: we're already including magic-string for this, but do not fully using it yet, neeeds refactoring)
- Plugins importing CSS files - Plugins importing CSS files
- CommonJS (cjs) and IIFI output formats. (Is UMD actually ever used?) - CommonJS (cjs) and IIFI output formats. (Is UMD actually ever used?)
- Overriding which DOM-nodes and resulting URLS to ignore/include (in a clean way) - Overriding which DOM-nodes and resulting URLS to ignore/include (in a clean way)
- Other (various) plugins such as typescript, or those for HMR etc - Other (various) plugins such as those for HMR etc
- ... - ...
# Contibuting # Contibuting

View File

@@ -6,5 +6,10 @@ const babelConfig ={
], ],
plugins: [ plugins: [
], ],
ignore: [
// Not sure why our babel config is even triggered on this one
// jest testing was running into alot of: `[BABEL] Note: The code generator has deoptimised the styling of node_modules/.pnpm/rollup@4.13.2/node_modules/rollup/dist/es/shared/node-entry.js as it exceeds the max of 500KB.`
"./node_modules/.pnpm/rollup"
]
}; };
export default babelConfig; export default babelConfig;

View File

@@ -79,7 +79,7 @@
"puppeteer": "^21.11.0", "puppeteer": "^21.11.0",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"rollup": "^4.13.0", "rollup": "^4.13.2",
"rollup-plugin-delete": "^2.0.0", "rollup-plugin-delete": "^2.0.0",
"rollup-plugin-livereload": "^2.0.5", "rollup-plugin-livereload": "^2.0.5",
"rollup-plugin-postcss": "^4.0.2", "rollup-plugin-postcss": "^4.0.2",

162
pnpm-lock.yaml generated
View File

@@ -7,7 +7,7 @@ settings:
dependencies: dependencies:
'@rollup/pluginutils': '@rollup/pluginutils':
specifier: ^5.1.0 specifier: ^5.1.0
version: 5.1.0(rollup@4.13.0) version: 5.1.0(rollup@4.13.2)
magic-string: magic-string:
specifier: ^0.30.8 specifier: ^0.30.8
version: 0.30.8 version: 0.30.8
@@ -36,25 +36,25 @@ devDependencies:
version: 29.7.0 version: 29.7.0
'@rollup/plugin-babel': '@rollup/plugin-babel':
specifier: ^6.0.4 specifier: ^6.0.4
version: 6.0.4(@babel/core@7.24.3)(rollup@4.13.0) version: 6.0.4(@babel/core@7.24.3)(rollup@4.13.2)
'@rollup/plugin-commonjs': '@rollup/plugin-commonjs':
specifier: ^25.0.7 specifier: ^25.0.7
version: 25.0.7(rollup@4.13.0) version: 25.0.7(rollup@4.13.2)
'@rollup/plugin-node-resolve': '@rollup/plugin-node-resolve':
specifier: ^15.2.3 specifier: ^15.2.3
version: 15.2.3(rollup@4.13.0) version: 15.2.3(rollup@4.13.2)
'@rollup/plugin-replace': '@rollup/plugin-replace':
specifier: ^5.0.5 specifier: ^5.0.5
version: 5.0.5(rollup@4.13.0) version: 5.0.5(rollup@4.13.2)
'@rollup/plugin-terser': '@rollup/plugin-terser':
specifier: ^0.4.4 specifier: ^0.4.4
version: 0.4.4(rollup@4.13.0) version: 0.4.4(rollup@4.13.2)
'@rollup/plugin-typescript': '@rollup/plugin-typescript':
specifier: ^11.1.6 specifier: ^11.1.6
version: 11.1.6(rollup@4.13.0)(typescript@5.4.3) version: 11.1.6(rollup@4.13.2)(typescript@5.4.3)
'@rollup/plugin-url': '@rollup/plugin-url':
specifier: ^8.0.2 specifier: ^8.0.2
version: 8.0.2(rollup@4.13.0) version: 8.0.2(rollup@4.13.2)
'@types/jest': '@types/jest':
specifier: ^29.5.12 specifier: ^29.5.12
version: 29.5.12 version: 29.5.12
@@ -104,8 +104,8 @@ devDependencies:
specifier: ^18.2.0 specifier: ^18.2.0
version: 18.2.0(react@18.2.0) version: 18.2.0(react@18.2.0)
rollup: rollup:
specifier: ^4.13.0 specifier: ^4.13.2
version: 4.13.0 version: 4.13.2
rollup-plugin-delete: rollup-plugin-delete:
specifier: ^2.0.0 specifier: ^2.0.0
version: 2.0.0 version: 2.0.0
@@ -1723,7 +1723,7 @@ packages:
- supports-color - supports-color
dev: true dev: true
/@rollup/plugin-babel@6.0.4(@babel/core@7.24.3)(rollup@4.13.0): /@rollup/plugin-babel@6.0.4(@babel/core@7.24.3)(rollup@4.13.2):
resolution: {integrity: sha512-YF7Y52kFdFT/xVSuVdjkV5ZdX/3YtmX0QulG+x0taQOtJdHYzVU61aSSkAgVJ7NOv6qPkIYiJSgSWWN/DM5sGw==} resolution: {integrity: sha512-YF7Y52kFdFT/xVSuVdjkV5ZdX/3YtmX0QulG+x0taQOtJdHYzVU61aSSkAgVJ7NOv6qPkIYiJSgSWWN/DM5sGw==}
engines: {node: '>=14.0.0'} engines: {node: '>=14.0.0'}
peerDependencies: peerDependencies:
@@ -1738,11 +1738,11 @@ packages:
dependencies: dependencies:
'@babel/core': 7.24.3 '@babel/core': 7.24.3
'@babel/helper-module-imports': 7.24.3 '@babel/helper-module-imports': 7.24.3
'@rollup/pluginutils': 5.1.0(rollup@4.13.0) '@rollup/pluginutils': 5.1.0(rollup@4.13.2)
rollup: 4.13.0 rollup: 4.13.2
dev: true dev: true
/@rollup/plugin-commonjs@25.0.7(rollup@4.13.0): /@rollup/plugin-commonjs@25.0.7(rollup@4.13.2):
resolution: {integrity: sha512-nEvcR+LRjEjsaSsc4x3XZfCCvZIaSMenZu/OiwOKGN2UhQpAYI7ru7czFvyWbErlpoGjnSX3D5Ch5FcMA3kRWQ==} resolution: {integrity: sha512-nEvcR+LRjEjsaSsc4x3XZfCCvZIaSMenZu/OiwOKGN2UhQpAYI7ru7czFvyWbErlpoGjnSX3D5Ch5FcMA3kRWQ==}
engines: {node: '>=14.0.0'} engines: {node: '>=14.0.0'}
peerDependencies: peerDependencies:
@@ -1751,16 +1751,16 @@ packages:
rollup: rollup:
optional: true optional: true
dependencies: dependencies:
'@rollup/pluginutils': 5.1.0(rollup@4.13.0) '@rollup/pluginutils': 5.1.0(rollup@4.13.2)
commondir: 1.0.1 commondir: 1.0.1
estree-walker: 2.0.2 estree-walker: 2.0.2
glob: 8.1.0 glob: 8.1.0
is-reference: 1.2.1 is-reference: 1.2.1
magic-string: 0.30.8 magic-string: 0.30.8
rollup: 4.13.0 rollup: 4.13.2
dev: true dev: true
/@rollup/plugin-node-resolve@15.2.3(rollup@4.13.0): /@rollup/plugin-node-resolve@15.2.3(rollup@4.13.2):
resolution: {integrity: sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==} resolution: {integrity: sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==}
engines: {node: '>=14.0.0'} engines: {node: '>=14.0.0'}
peerDependencies: peerDependencies:
@@ -1769,16 +1769,16 @@ packages:
rollup: rollup:
optional: true optional: true
dependencies: dependencies:
'@rollup/pluginutils': 5.1.0(rollup@4.13.0) '@rollup/pluginutils': 5.1.0(rollup@4.13.2)
'@types/resolve': 1.20.2 '@types/resolve': 1.20.2
deepmerge: 4.3.1 deepmerge: 4.3.1
is-builtin-module: 3.2.1 is-builtin-module: 3.2.1
is-module: 1.0.0 is-module: 1.0.0
resolve: 1.22.8 resolve: 1.22.8
rollup: 4.13.0 rollup: 4.13.2
dev: true dev: true
/@rollup/plugin-replace@5.0.5(rollup@4.13.0): /@rollup/plugin-replace@5.0.5(rollup@4.13.2):
resolution: {integrity: sha512-rYO4fOi8lMaTg/z5Jb+hKnrHHVn8j2lwkqwyS4kTRhKyWOLf2wST2sWXr4WzWiTcoHTp2sTjqUbqIj2E39slKQ==} resolution: {integrity: sha512-rYO4fOi8lMaTg/z5Jb+hKnrHHVn8j2lwkqwyS4kTRhKyWOLf2wST2sWXr4WzWiTcoHTp2sTjqUbqIj2E39slKQ==}
engines: {node: '>=14.0.0'} engines: {node: '>=14.0.0'}
peerDependencies: peerDependencies:
@@ -1787,12 +1787,12 @@ packages:
rollup: rollup:
optional: true optional: true
dependencies: dependencies:
'@rollup/pluginutils': 5.1.0(rollup@4.13.0) '@rollup/pluginutils': 5.1.0(rollup@4.13.2)
magic-string: 0.30.8 magic-string: 0.30.8
rollup: 4.13.0 rollup: 4.13.2
dev: true dev: true
/@rollup/plugin-terser@0.4.4(rollup@4.13.0): /@rollup/plugin-terser@0.4.4(rollup@4.13.2):
resolution: {integrity: sha512-XHeJC5Bgvs8LfukDwWZp7yeqin6ns8RTl2B9avbejt6tZqsqvVoWI7ZTQrcNsfKEDWBTnTxM8nMDkO2IFFbd0A==} resolution: {integrity: sha512-XHeJC5Bgvs8LfukDwWZp7yeqin6ns8RTl2B9avbejt6tZqsqvVoWI7ZTQrcNsfKEDWBTnTxM8nMDkO2IFFbd0A==}
engines: {node: '>=14.0.0'} engines: {node: '>=14.0.0'}
peerDependencies: peerDependencies:
@@ -1801,13 +1801,13 @@ packages:
rollup: rollup:
optional: true optional: true
dependencies: dependencies:
rollup: 4.13.0 rollup: 4.13.2
serialize-javascript: 6.0.2 serialize-javascript: 6.0.2
smob: 1.4.1 smob: 1.4.1
terser: 5.29.2 terser: 5.29.2
dev: true dev: true
/@rollup/plugin-typescript@11.1.6(rollup@4.13.0)(typescript@5.4.3): /@rollup/plugin-typescript@11.1.6(rollup@4.13.2)(typescript@5.4.3):
resolution: {integrity: sha512-R92yOmIACgYdJ7dJ97p4K69I8gg6IEHt8M7dUBxN3W6nrO8uUxX5ixl0yU/N3aZTi8WhPuICvOHXQvF6FaykAA==} resolution: {integrity: sha512-R92yOmIACgYdJ7dJ97p4K69I8gg6IEHt8M7dUBxN3W6nrO8uUxX5ixl0yU/N3aZTi8WhPuICvOHXQvF6FaykAA==}
engines: {node: '>=14.0.0'} engines: {node: '>=14.0.0'}
peerDependencies: peerDependencies:
@@ -1820,13 +1820,13 @@ packages:
tslib: tslib:
optional: true optional: true
dependencies: dependencies:
'@rollup/pluginutils': 5.1.0(rollup@4.13.0) '@rollup/pluginutils': 5.1.0(rollup@4.13.2)
resolve: 1.22.8 resolve: 1.22.8
rollup: 4.13.0 rollup: 4.13.2
typescript: 5.4.3 typescript: 5.4.3
dev: true dev: true
/@rollup/plugin-url@8.0.2(rollup@4.13.0): /@rollup/plugin-url@8.0.2(rollup@4.13.2):
resolution: {integrity: sha512-5yW2LP5NBEgkvIRSSEdJkmxe5cUNZKG3eenKtfJvSkxVm/xTTu7w+ayBtNwhozl1ZnTUCU0xFaRQR+cBl2H7TQ==} resolution: {integrity: sha512-5yW2LP5NBEgkvIRSSEdJkmxe5cUNZKG3eenKtfJvSkxVm/xTTu7w+ayBtNwhozl1ZnTUCU0xFaRQR+cBl2H7TQ==}
engines: {node: '>=14.0.0'} engines: {node: '>=14.0.0'}
peerDependencies: peerDependencies:
@@ -1835,13 +1835,13 @@ packages:
rollup: rollup:
optional: true optional: true
dependencies: dependencies:
'@rollup/pluginutils': 5.1.0(rollup@4.13.0) '@rollup/pluginutils': 5.1.0(rollup@4.13.2)
make-dir: 3.1.0 make-dir: 3.1.0
mime: 3.0.0 mime: 3.0.0
rollup: 4.13.0 rollup: 4.13.2
dev: true dev: true
/@rollup/pluginutils@5.1.0(rollup@4.13.0): /@rollup/pluginutils@5.1.0(rollup@4.13.2):
resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==}
engines: {node: '>=14.0.0'} engines: {node: '>=14.0.0'}
peerDependencies: peerDependencies:
@@ -1853,94 +1853,108 @@ packages:
'@types/estree': 1.0.5 '@types/estree': 1.0.5
estree-walker: 2.0.2 estree-walker: 2.0.2
picomatch: 2.3.1 picomatch: 2.3.1
rollup: 4.13.0 rollup: 4.13.2
/@rollup/rollup-android-arm-eabi@4.13.0: /@rollup/rollup-android-arm-eabi@4.13.2:
resolution: {integrity: sha512-5ZYPOuaAqEH/W3gYsRkxQATBW3Ii1MfaT4EQstTnLKViLi2gLSQmlmtTpGucNP3sXEpOiI5tdGhjdE111ekyEg==} resolution: {integrity: sha512-3XFIDKWMFZrMnao1mJhnOT1h2g0169Os848NhhmGweEcfJ4rCi+3yMCOLG4zA61rbJdkcrM/DjVZm9Hg5p5w7g==}
cpu: [arm] cpu: [arm]
os: [android] os: [android]
requiresBuild: true requiresBuild: true
optional: true optional: true
/@rollup/rollup-android-arm64@4.13.0: /@rollup/rollup-android-arm64@4.13.2:
resolution: {integrity: sha512-BSbaCmn8ZadK3UAQdlauSvtaJjhlDEjS5hEVVIN3A4bbl3X+otyf/kOJV08bYiRxfejP3DXFzO2jz3G20107+Q==} resolution: {integrity: sha512-GdxxXbAuM7Y/YQM9/TwwP+L0omeE/lJAR1J+olu36c3LqqZEBdsIWeQ91KBe6nxwOnb06Xh7JS2U5ooWU5/LgQ==}
cpu: [arm64] cpu: [arm64]
os: [android] os: [android]
requiresBuild: true requiresBuild: true
optional: true optional: true
/@rollup/rollup-darwin-arm64@4.13.0: /@rollup/rollup-darwin-arm64@4.13.2:
resolution: {integrity: sha512-Ovf2evVaP6sW5Ut0GHyUSOqA6tVKfrTHddtmxGQc1CTQa1Cw3/KMCDEEICZBbyppcwnhMwcDce9ZRxdWRpVd6g==} resolution: {integrity: sha512-mCMlpzlBgOTdaFs83I4XRr8wNPveJiJX1RLfv4hggyIVhfB5mJfN4P8Z6yKh+oE4Luz+qq1P3kVdWrCKcMYrrA==}
cpu: [arm64] cpu: [arm64]
os: [darwin] os: [darwin]
requiresBuild: true requiresBuild: true
optional: true optional: true
/@rollup/rollup-darwin-x64@4.13.0: /@rollup/rollup-darwin-x64@4.13.2:
resolution: {integrity: sha512-U+Jcxm89UTK592vZ2J9st9ajRv/hrwHdnvyuJpa5A2ngGSVHypigidkQJP+YiGL6JODiUeMzkqQzbCG3At81Gg==} resolution: {integrity: sha512-yUoEvnH0FBef/NbB1u6d3HNGyruAKnN74LrPAfDQL3O32e3k3OSfLrPgSJmgb3PJrBZWfPyt6m4ZhAFa2nZp2A==}
cpu: [x64] cpu: [x64]
os: [darwin] os: [darwin]
requiresBuild: true requiresBuild: true
optional: true optional: true
/@rollup/rollup-linux-arm-gnueabihf@4.13.0: /@rollup/rollup-linux-arm-gnueabihf@4.13.2:
resolution: {integrity: sha512-8wZidaUJUTIR5T4vRS22VkSMOVooG0F4N+JSwQXWSRiC6yfEsFMLTYRFHvby5mFFuExHa/yAp9juSphQQJAijQ==} resolution: {integrity: sha512-GYbLs5ErswU/Xs7aGXqzc3RrdEjKdmoCrgzhJWyFL0r5fL3qd1NPcDKDowDnmcoSiGJeU68/Vy+OMUluRxPiLQ==}
cpu: [arm] cpu: [arm]
os: [linux] os: [linux]
requiresBuild: true requiresBuild: true
optional: true optional: true
/@rollup/rollup-linux-arm64-gnu@4.13.0: /@rollup/rollup-linux-arm64-gnu@4.13.2:
resolution: {integrity: sha512-Iu0Kno1vrD7zHQDxOmvweqLkAzjxEVqNhUIXBsZ8hu8Oak7/5VTPrxOEZXYC1nmrBVJp0ZcL2E7lSuuOVaE3+w==} resolution: {integrity: sha512-L1+D8/wqGnKQIlh4Zre9i4R4b4noxzH5DDciyahX4oOz62CphY7WDWqJoQ66zNR4oScLNOqQJfNSIAe/6TPUmQ==}
cpu: [arm64] cpu: [arm64]
os: [linux] os: [linux]
requiresBuild: true requiresBuild: true
optional: true optional: true
/@rollup/rollup-linux-arm64-musl@4.13.0: /@rollup/rollup-linux-arm64-musl@4.13.2:
resolution: {integrity: sha512-C31QrW47llgVyrRjIwiOwsHFcaIwmkKi3PCroQY5aVq4H0A5v/vVVAtFsI1nfBngtoRpeREvZOkIhmRwUKkAdw==} resolution: {integrity: sha512-tK5eoKFkXdz6vjfkSTCupUzCo40xueTOiOO6PeEIadlNBkadH1wNOH8ILCPIl8by/Gmb5AGAeQOFeLev7iZDOA==}
cpu: [arm64] cpu: [arm64]
os: [linux] os: [linux]
requiresBuild: true requiresBuild: true
optional: true optional: true
/@rollup/rollup-linux-riscv64-gnu@4.13.0: /@rollup/rollup-linux-powerpc64le-gnu@4.13.2:
resolution: {integrity: sha512-Oq90dtMHvthFOPMl7pt7KmxzX7E71AfyIhh+cPhLY9oko97Zf2C9tt/XJD4RgxhaGeAraAXDtqxvKE1y/j35lA==} resolution: {integrity: sha512-zvXvAUGGEYi6tYhcDmb9wlOckVbuD+7z3mzInCSTACJ4DQrdSLPNUeDIcAQW39M3q6PDquqLWu7pnO39uSMRzQ==}
cpu: [ppc64le]
os: [linux]
requiresBuild: true
optional: true
/@rollup/rollup-linux-riscv64-gnu@4.13.2:
resolution: {integrity: sha512-C3GSKvMtdudHCN5HdmAMSRYR2kkhgdOfye4w0xzyii7lebVr4riCgmM6lRiSCnJn2w1Xz7ZZzHKuLrjx5620kw==}
cpu: [riscv64] cpu: [riscv64]
os: [linux] os: [linux]
requiresBuild: true requiresBuild: true
optional: true optional: true
/@rollup/rollup-linux-x64-gnu@4.13.0: /@rollup/rollup-linux-s390x-gnu@4.13.2:
resolution: {integrity: sha512-yUD/8wMffnTKuiIsl6xU+4IA8UNhQ/f1sAnQebmE/lyQ8abjsVyDkyRkWop0kdMhKMprpNIhPmYlCxgHrPoXoA==} resolution: {integrity: sha512-l4U0KDFwzD36j7HdfJ5/TveEQ1fUTjFFQP5qIt9gBqBgu1G8/kCaq5Ok05kd5TG9F8Lltf3MoYsUMw3rNlJ0Yg==}
cpu: [s390x]
os: [linux]
requiresBuild: true
optional: true
/@rollup/rollup-linux-x64-gnu@4.13.2:
resolution: {integrity: sha512-xXMLUAMzrtsvh3cZ448vbXqlUa7ZL8z0MwHp63K2IIID2+DeP5iWIT6g1SN7hg1VxPzqx0xZdiDM9l4n9LRU1A==}
cpu: [x64] cpu: [x64]
os: [linux] os: [linux]
requiresBuild: true requiresBuild: true
optional: true optional: true
/@rollup/rollup-linux-x64-musl@4.13.0: /@rollup/rollup-linux-x64-musl@4.13.2:
resolution: {integrity: sha512-9RyNqoFNdF0vu/qqX63fKotBh43fJQeYC98hCaf89DYQpv+xu0D8QFSOS0biA7cGuqJFOc1bJ+m2rhhsKcw1hw==} resolution: {integrity: sha512-M/JYAWickafUijWPai4ehrjzVPKRCyDb1SLuO+ZyPfoXgeCEAlgPkNXewFZx0zcnoIe3ay4UjXIMdXQXOZXWqA==}
cpu: [x64] cpu: [x64]
os: [linux] os: [linux]
requiresBuild: true requiresBuild: true
optional: true optional: true
/@rollup/rollup-win32-arm64-msvc@4.13.0: /@rollup/rollup-win32-arm64-msvc@4.13.2:
resolution: {integrity: sha512-46ue8ymtm/5PUU6pCvjlic0z82qWkxv54GTJZgHrQUuZnVH+tvvSP0LsozIDsCBFO4VjJ13N68wqrKSeScUKdA==} resolution: {integrity: sha512-2YWwoVg9KRkIKaXSh0mz3NmfurpmYoBBTAXA9qt7VXk0Xy12PoOP40EFuau+ajgALbbhi4uTj3tSG3tVseCjuA==}
cpu: [arm64] cpu: [arm64]
os: [win32] os: [win32]
requiresBuild: true requiresBuild: true
optional: true optional: true
/@rollup/rollup-win32-ia32-msvc@4.13.0: /@rollup/rollup-win32-ia32-msvc@4.13.2:
resolution: {integrity: sha512-P5/MqLdLSlqxbeuJ3YDeX37srC8mCflSyTrUsgbU1c/U9j6l2g2GiIdYaGD9QjdMQPMSgYm7hgg0551wHyIluw==} resolution: {integrity: sha512-2FSsE9aQ6OWD20E498NYKEQLneShWes0NGMPQwxWOdws35qQXH+FplabOSP5zEe1pVjurSDOGEVCE2agFwSEsw==}
cpu: [ia32] cpu: [ia32]
os: [win32] os: [win32]
requiresBuild: true requiresBuild: true
optional: true optional: true
/@rollup/rollup-win32-x64-msvc@4.13.0: /@rollup/rollup-win32-x64-msvc@4.13.2:
resolution: {integrity: sha512-UKXUQNbO3DOhzLRwHSpa0HnhhCgNODvfoPWv2FCXme8N/ANFfhIPMGuOT+QuKd16+B5yxZ0HdpNlqPvTMS1qfw==} resolution: {integrity: sha512-7h7J2nokcdPePdKykd8wtc8QqqkqxIrUz7MHj6aNr8waBRU//NLDVnNjQnqQO6fqtjrtCdftpbTuOKAyrAQETQ==}
cpu: [x64] cpu: [x64]
os: [win32] os: [win32]
requiresBuild: true requiresBuild: true
@@ -5566,26 +5580,28 @@ packages:
estree-walker: 0.6.1 estree-walker: 0.6.1
dev: true dev: true
/rollup@4.13.0: /rollup@4.13.2:
resolution: {integrity: sha512-3YegKemjoQnYKmsBlOHfMLVPPA5xLkQ8MHLLSw/fBrFaVkEayL51DilPpNNLq1exr98F2B1TzrV0FUlN3gWRPg==} resolution: {integrity: sha512-MIlLgsdMprDBXC+4hsPgzWUasLO9CE4zOkj/u6j+Z6j5A4zRY+CtiXAdJyPtgCsc42g658Aeh1DlrdVEJhsL2g==}
engines: {node: '>=18.0.0', npm: '>=8.0.0'} engines: {node: '>=18.0.0', npm: '>=8.0.0'}
hasBin: true hasBin: true
dependencies: dependencies:
'@types/estree': 1.0.5 '@types/estree': 1.0.5
optionalDependencies: optionalDependencies:
'@rollup/rollup-android-arm-eabi': 4.13.0 '@rollup/rollup-android-arm-eabi': 4.13.2
'@rollup/rollup-android-arm64': 4.13.0 '@rollup/rollup-android-arm64': 4.13.2
'@rollup/rollup-darwin-arm64': 4.13.0 '@rollup/rollup-darwin-arm64': 4.13.2
'@rollup/rollup-darwin-x64': 4.13.0 '@rollup/rollup-darwin-x64': 4.13.2
'@rollup/rollup-linux-arm-gnueabihf': 4.13.0 '@rollup/rollup-linux-arm-gnueabihf': 4.13.2
'@rollup/rollup-linux-arm64-gnu': 4.13.0 '@rollup/rollup-linux-arm64-gnu': 4.13.2
'@rollup/rollup-linux-arm64-musl': 4.13.0 '@rollup/rollup-linux-arm64-musl': 4.13.2
'@rollup/rollup-linux-riscv64-gnu': 4.13.0 '@rollup/rollup-linux-powerpc64le-gnu': 4.13.2
'@rollup/rollup-linux-x64-gnu': 4.13.0 '@rollup/rollup-linux-riscv64-gnu': 4.13.2
'@rollup/rollup-linux-x64-musl': 4.13.0 '@rollup/rollup-linux-s390x-gnu': 4.13.2
'@rollup/rollup-win32-arm64-msvc': 4.13.0 '@rollup/rollup-linux-x64-gnu': 4.13.2
'@rollup/rollup-win32-ia32-msvc': 4.13.0 '@rollup/rollup-linux-x64-musl': 4.13.2
'@rollup/rollup-win32-x64-msvc': 4.13.0 '@rollup/rollup-win32-arm64-msvc': 4.13.2
'@rollup/rollup-win32-ia32-msvc': 4.13.2
'@rollup/rollup-win32-x64-msvc': 4.13.2
fsevents: 2.3.3 fsevents: 2.3.3
/run-parallel@1.2.0: /run-parallel@1.2.0:

View File

@@ -55,6 +55,9 @@ export async function puppeteerRunTest(opts: Partial<TestOptions>, hostUrl: stri
const browser = await puppeteer.launch({ const browser = await puppeteer.launch({
headless: isInDebugMode()? false : 'new', headless: isInDebugMode()? false : 'new',
args: [
...(process.env.PUPPETEER_CHROME_ARGS??'').split(' '),
]// --use-gl=egl
}); });
const page = await browser.newPage(); const page = await browser.newPage();