ui: Adds ember-auto-import and replaces the 3 places where we used npm: (#5952)

Also removes ember-browserify
This commit is contained in:
John Cowen 2019-06-14 18:24:07 +01:00 committed by John Cowen
parent df0cf11a0f
commit 2b30667fc7
5 changed files with 504 additions and 500 deletions

View File

@ -1,4 +1,4 @@
import base64js from 'npm:base64-js';
import base64js from 'base64-js';
export default function(str, encoding = 'utf-8') {
// decode
const bytes = base64js.toByteArray(str);

View File

@ -1,4 +1,4 @@
import base64js from 'npm:base64-js';
import base64js from 'base64-js';
export default function(str, encoding = 'utf-8') {
// encode
const bytes = new TextEncoder(encoding).encode(str);

View File

@ -57,7 +57,7 @@
"clipboard": "^2.0.4",
"dart-sass": "^1.14.1",
"ember-ajax": "^3.0.0",
"ember-browserify": "^1.2.2",
"ember-auto-import": "^1.4.0",
"ember-changeset-validations": "^2.1.0",
"ember-cli": "~2.18.2",
"ember-cli-app-version": "^3.0.0",

View File

@ -1,2 +1,2 @@
import yadda from 'npm:yadda';
import yadda from 'yadda';
export default yadda;

File diff suppressed because it is too large Load Diff