Skip to content

Commit

Permalink
Workaround for firebase-ui nr 392
Browse files Browse the repository at this point in the history
  • Loading branch information
sne11ius committed May 18, 2018
1 parent d42c75a commit 45589cf
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"lint-staged": "^6.0.0",
"node-sass": "^4.9.0",
"sass-loader": "^6.0.6",
"string-replace-loader": "^2.1.1",
"vue-template-compiler": "^2.5.13"
},
"browserslist": [
Expand Down
22 changes: 22 additions & 0 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const path = require("path");

// Haha, this is just a bad joke about the current state of js development.
// see https://github.com/firebase/firebaseui-web/issues/392

module.exports = {
configureWebpack: {
module: {
rules: [
{
test: /npm\.js$/,
loader: "string-replace-loader",
include: path.resolve("node_modules/firebaseui/dist"),
options: {
search: "require('firebase/app');",
replace: "require('firebase/app').default;"
}
}
]
}
}
};

0 comments on commit 45589cf

Please sign in to comment.