Skip to content

Commit

Permalink
WIP: Add polyfills but get error about missing template
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Oct 19, 2024
1 parent ee78d96 commit 288f017
Show file tree
Hide file tree
Showing 4 changed files with 746 additions and 8 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"html-loader": "^4.0.0",
"html-webpack-plugin": "^5.6.0",
"jasmine-core": "^4.0.0",
"node-polyfill-webpack-plugin": "^4.0.0",
"postcss-loader": "^7.0.0",
"prettier": "^2.0.5",
"protractor": "^5.4.2",
Expand Down
4 changes: 4 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
// Adding lang="ts" to a Vue component produced error "browser is not defined".
// The `browser` usage is in the spec files, so include only app code.
// Test code is abandoned for now.
"include": ["app/**/*"],
"compilerOptions": {
"outDir": "./dist/",
"sourceMap": true,
Expand Down
2 changes: 2 additions & 0 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const Dotenv = require("dotenv")
const CopyWebpackPlugin = require("copy-webpack-plugin")
const HtmlWebpackPlugin = require("html-webpack-plugin")
const { VueLoaderPlugin } = require("vue-loader")
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin")

// Read .env into process.env
Dotenv.config()
Expand Down Expand Up @@ -178,6 +179,7 @@ module.exports = {
ENVIRONMENT: "development", // Can be: "development", "staging" or "production"
}),
new VueLoaderPlugin(),
new NodePolyfillPlugin(),
],
ignoreWarnings: [
(e) => e.message.includes("Can't resolve 'custom"),
Expand Down
Loading

0 comments on commit 288f017

Please sign in to comment.