ember-simple-auth 1.4.0 create a strange file when I "ember build -prod"
See original GitHub issueI switched from 1.3.0
to 1.4.0
and now when I ember build -prod
I have a new file in:
dist/ember-fetch/fastboot-fetch-a4c28b6b7b24781cc7616fb44c1def25.js
:
(function(){define('fetch',['exports'],function(a){var b=FastBoot.require('node-fetch');a['default']=b,a.Headers=b.Headers,a.Request=b.Request,a.Response=b.Response}),define('fetch/ajax',['exports'],function(){throw new Error('You included
fetch/ajaxbut it was renamed to
ember-fetch/ajax')})})();
Why this?
I don’t want this file in my prod dist folder.
I’m not using fastboot
.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Large app performance / file splitting - Ember.JS
I've been working on a semi overhaul and refactor of my application and have been trying to tackle ever increasing build times and...
Read more >Static Site Build Failing - help debug? - Render community
Below is the error I'm getting. Not sure what is causing it. The build works on Netlify just fine. Wanted to port to...
Read more >Implementing a custom ember-simple-auth Authenticator
Actually you solution looks like right. I guess you have a problem in server response or mismatch request methods GET/POST.
Read more >Full-Stack Development with Ember.js and Rails, Part 8
We'll use Ember Simple Auth on the frontend and Doorkeeper on the backend to log in, protect our data, and set up different...
Read more >ember-simple-auth-input-meta-updated - npm package - Snyk
[![Build Status](https://travis-ci.org/simplabs/ember-simple-auth.svg? ... All security vulnerabilities belong to production dependencies of ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After some thought there may be a solution. If
ember-fetch
could know ifember-fastboot
is installed it could decide to include or not the file in the public folder. I am wondering if the pattern of requiring afastboot
specific implementation is something we expect to become idiomatic and used in lots of addons? If it is the case, maybe it worth resolving? cc @rwjblue @kratiahujaIn other words: if my app is not using fastboot, how do I avoid this step ever happening? Is there a flag to set, or can a change be made in ember-fetch to detect fastboot?