rollupjs

    0熱度

    1回答

    我已經確定了一個全局和外部的Javascript庫(incremental-dom)。我正在使用腳本標記加載庫。 當彙總格式爲「iife」時,將庫注入到iife中並且一切正常。 然而,當我使用「上課」格式,全球不會被引用,瀏覽器將拋出類型錯誤: Uncaught TypeError: Failed to resolve module specifier 'incremental-dom' 這是我的

    1熱度

    1回答

    我試圖使用Rollup與Gulp 以下是我的Gulpfile: const gulp = require("gulp"); const rollup = require("rollup-stream"); const vue = require("rollup-plugin-vue"); const resolve = require("rollup-plugin-node-resolve"

    0熱度

    1回答

    我有2個其中有一些共同的部分和不常見的零部件總成的配置文件: // rollup.config.umd.js export config { external: ['invariant', 'lodash'], globals: { invariant: 'invariant' }, input: 'src/index.js',

    0熱度

    1回答

    我想使用RollUp.js將幾個javascript文件捆綁在一起,但是當我這樣做時,未使用的類將被刪除。這個過程稱爲樹抖動,我想禁用它。我發現this但它似乎沒有任何作用。 // rollup.config.js let configuration = { output: { format: 'es', }, name: 'namename',

    0熱度

    2回答

    js文件: import template from './Template.html'; class VacationListForCompany extends HTMLElement { constructor() { super(); const root = this.attachShadow({mode:'open'}); const t = n

    1熱度

    1回答

    我的源代碼,要求我從module-dev導入像這樣: import { calculate } from "module-dev"; 我目前捆綁到commonjs使用匯總(format: cjs)。可以將依賴關係重命名爲例如module-prod?因此,輸出將是: var calculate = require('module-prod');

    0熱度

    1回答

    我目前正在爲Angular 4.x編寫一個庫(用TypeScript編寫)。必要的JavaScript包使用Rollup創建。這一切都運行良好,直到我加入big.js library和相應的類型(@types/big.js)。 我導入它是這樣的: import * as Big from 'big.js'; import BigJS = BigJsLibrary.BigJS; 而且使用這樣的

    3熱度

    1回答

    我有一個客戶端應用程序,它使用一些瀏覽器全局屬性,如Element或document。 我想我的運行在Node.js應用程式,以及目前我重寫與domino dom implementation全局那些在我的服務器,像這樣: const domino = require("domino"); const domimpl = domino.createDOMImplementation(); c

    0熱度

    1回答

    我目前通過使用rollup.js超越簡單的「helloworld」的情況下磨腳。我創建了一個彙總項目,其中使用了babel,eslint和傳單的組合。我rollup.config.js是如下: import L from 'leaflet'; var map = L.map('map').setView([54.217, -4.5373], 8); L.tileLayer('http://

    0熱度

    1回答

    我在的package.json增加配置後,「系統沒有定義」,而rollup.config.js低於: const rollupConfig = require('@ionic/app-scripts/config/rollup.config'); enter code hereconst replace = require('rollup-plugin-replace'); const is