-
Notifications
You must be signed in to change notification settings - Fork 31
app.import is not a function #41
Comments
We agree and will be implementing this very soon! Sorry for the doc mismatch. |
I'm sure the workaround below is not a good way to do it, and yes I'm using private API here, but it works for me at the moment (it will also fingerprint vendor.js for production as you expect) : $ npm install --save-dev broccoli-concat broccoli-merge-trees
'use strict';
const GlimmerApp = require('@glimmer/application-pipeline').GlimmerApp;
const Concat = require('broccoli-concat');
const MergeTrees = require('broccoli-merge-trees');
class CustomApp extends GlimmerApp {
publicTree() {
let originalTree = super.publicTree();
let vendorScripts = new Concat('node_modules', {
inputFiles: [
'core-js/client/core.min.js',
'whatwg-fetch/fetch.js'
],
outputFile: 'vendor.js',
});
return new MergeTrees([originalTree, vendorScripts], { overwrite: true });
}
}
module.exports = function(defaults) {
let app = new CustomApp(defaults, {
fingerprint: {
exclude: ['apple-touch-icon', 'favicon', 'mstile', 'android-chrome']
}
});
return app.toTree();
}; |
I've started work on this here. It's far from complete at this point. |
Hey. I am playing with Glimmer today. I was trying to import bootstrap-sassy, but the ember app crash. After trying to reinitiate the server I receive that message :
Any solution or work around ? |
@jamesarosen - Have you had a chance to make any progress? |
Any news on this, I'd like to take advantage of most ember addons inside glimmer apps. I could help in getting this done, however I'd need some guidance on what to do. |
Still not implemented |
Hey, I was playing with Glimmer today and found out that it's application pipeline doesn't have
import
method, but in the generated blueprint there is information that it should be there:When trying to import any additional resources I'm getting
app.import is not a function
.I think it would be really good to have this in glimmer pipeline as well.
The text was updated successfully, but these errors were encountered: