babeljs

    0熱度

    1回答

    這是Flux存儲庫中的Dispatcher.js。儘管文件擴展名不是JavaScript。 例如,uses類型: class Dispatcher<TPayload> { _callbacks: {[key: DispatchToken]: (payload: TPayload) => void}; 有人可以幫助我確定是用什麼語言編寫的和確切位置沒有其「transpilation」到

    5熱度

    1回答

    當我運行Aurelia應用程序時,Chrome中出現以下錯誤。無論我在哪裏,都會收到錯誤@。例如,@customElement和@bindable會給出錯誤。 我config.js看起來象下面這樣: System.config({ "baseURL": "/", "transpiler": "babel", "babelOptions": { "option

    0熱度

    1回答

    我編寫了一個CSS預處理器,它接受JSON作爲其源代碼和一個動態生成JSON並將其提供給預處理器的webpack加載器。 例如header.gss: import config from 'views/header.config.json'; export default function Header() { return { header: { positi

    3熱度

    1回答

    我有點卡在這個。我有一個由中間人,業力,茉莉花,babeljs組成的複雜堆棧來構建一個靜態網站。 考慮到這是一個實驗,我想使用ES6模塊。但是,中間人方面的一切都很好,我很難設置業力+茉莉花來進行測試。 主要問題在於通天之內:如果你將其設置爲使用modules: "ignore"你在你的規格手動使用System.import爲所有你的模塊,這是我不想要的。我想用ES6語法,但如果我設置module

    1熱度

    2回答

    { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader?optional[]=runtime'} 我安裝了巴貝爾的運行時 我用的WebPack與巴貝爾裝載機配置上面,但得到Object.assign不是功能的功能。我如何解決它?

    48熱度

    3回答

    我試圖通過與通天編譯的WebPack一個ES6的Web應用程序使用Object.assign(),但我得到一個錯誤: Uncaught TypeError: Object.assign is not a function 我已經使用babel-loader到transpile ES6到ES5,所以我所有的其他ES6代碼正在工作。然而,Object.assign()只有在我的代碼庫中還有impo

    0熱度

    1回答

    我正在以下非常混亂的消息,當我運行「燼服務」 [BABEL] Note: The code generator has deoptimised the styling of "ember-blog/bower_components/moment/min/locales.js" as it exceeds the max of "100KB" 它也拋出了以下錯誤: SyntaxError: em

    0熱度

    1回答

    我有一個React的問題。 巴貝爾翻譯是: React.render( <h1>Hello, world!</h1>, document.getElementById('example') ); 到 React.render(React.createElement( 'h1', null, 'Hello, world!' ), d

    4熱度

    1回答

    我想利用grunt &巴貝爾加載我的es6源作爲給定的測試依賴項。所以我一直在運行的實際src和通過browserify編譯應用程序就好了: module.exports = function (grunt) { // Import dependencies grunt.loadNpmTasks('grunt-contrib-watch'); grunt.loadN

    3熱度

    1回答

    我有較高階分量嘲笑高階函數: import React from 'react'; function withMUI(ComposedComponent) { return class withMUI { render() { return <ComposedComponent {...this.props}/>; } }; } ,並且