Coder Social home page Coder Social logo

bugreport125-asset-pipeline's Introduction

Example project for issue 125 of asset-pipeline

You need npm and jspm (which can be installed with npm install -g jspm) to run this example.

  1. cd demo

  2. npm install

  3. jspm install

  4. ./gradlew bootrun

Then open http://localhost:8080/ with developer tools enabled. You will see that there is a lot of js-files that are not found (404).

/* */
require('../modules/es6.object.to-string');
require('../modules/es6.string.iterator');
require('../modules/web.dom.iterable');
require('../modules/es6.promise');
module.exports = require('../modules/$.core').Promise;

but has been rewritten to

var _asset_pipeline_require = function(path) {
	var module = _asset_pipeline_modules[path];
	if(module != undefined) {
		return module().exports;
	}
	return null;
};

var _asset_pipeline_modules = _asset_pipeline_modules || {};
_asset_pipeline_modules['jspm_packages/npm/[email protected]/library/modules/es6.object.to-string.js'] =
(function() {
  var module = {exports: {}};
  var exports = module.exports;

  /* */
"format cjs";


  return module;
})
;
_asset_pipeline_modules['jspm_packages/npm/[email protected]/library/modules/es6.string.iterator.js'] =
(function() {
  var module = {exports: {}};
  var exports = module.exports;

  /* */
'use strict';
var $at = require('./$.string-at')(true);
require('./$.iter-define')(String, 'String', function(iterated) {
  this._t = String(iterated);
  this._i = 0;
}, function() {
  var O = this._t,
      index = this._i,
      point;
  if (index >= O.length)
    return {
      value: undefined,
      done: true
    };
  point = $at(O, index);
  this._i += point.length;
  return {
    value: point,
    done: false
  };
});


  return module;
})
;

...

Then change asset-pipeline version in build.gradle to 2.9.3. Now promise.js will render as is and all js-files should be found.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.