rollupjs

    3熱度

    3回答

    我正在開發項目,其中一切都保存在事件中,因此服務器需要一些時間來響應新數據。我使用Fluent等待使用ajax的頁面,但是這個不使用任何ajax。所以我想刷新頁面檢查是否有新的項目,如果不再刷新。 Selenium 2如何實現這一目標? 我這樣做: def accountsAfterCreating = 0 while (accountsAfterCreating <= existi

    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熱度

    2回答

    我試圖加載HTML到皮膚(頁眉/頁腳與導航按鈕),也已從外部HTML文件加載。下面是的jsfiddle的代碼,雖然它不會工作,因爲我不能把兩個外部文件導入的jsfiddle: http://jsfiddle.net/J4yUt/1/ 這是兩個外部文件的內容: medbox.html : <div id="medBox"></div> smallBox.html: <div id="smallB

    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');

    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