Skip to content

Instantly share code, notes, and snippets.

import type { CSSProperties } from '@vue/runtime-dom';
import { rpx2vws } from './utils/rpx2vw';
const STANDALONE = [
'items-end',
'overflow-hidden',
'flex',
'flex-col',
'number',
'bold',
@lsdsjy
lsdsjy / rollup-plugin-dep-path.js
Last active May 9, 2023 08:31
Print the dependency path of some module in Vite/Rollup
module.exports = function plugin(options = {}) {
let exclude = (str) => options.exclude && str.match(options.exclude);
return {
name: 'print-dep-path',
generateBundle() {
/**
* @type {Map<string, string[]>}
*/
const importersMap = new Map();
(() => {
// node_modules/.pnpm/registry.npmmirror.com+monaco-editor@0.34.0/node_modules/monaco-editor/esm/vs/base/common/errors.js
var ErrorHandler = class {
constructor() {
this.listeners = [];
this.unexpectedErrorHandler = function(e) {
setTimeout(() => {
if (e.stack) {
if (ErrorNoTelemetry.isErrorNoTelemetry(e)) {
throw new ErrorNoTelemetry(e.message + "\n\n" + e.stack);
This file has been truncated, but you can view the full file.
(() => {
// node_modules/.pnpm/registry.npmmirror.com+monaco-editor@0.34.0/node_modules/monaco-editor/esm/vs/base/common/errors.js
var ErrorHandler = class {
constructor() {
this.listeners = [];
this.unexpectedErrorHandler = function(e) {
setTimeout(() => {
if (e.stack) {
if (ErrorNoTelemetry.isErrorNoTelemetry(e)) {
throw new ErrorNoTelemetry(e.message + "\n\n" + e.stack);