Skip to content
This repository was archived by the owner on Feb 19, 2024. It is now read-only.

Commit ab2d0e2

Browse files
committed
Cannot assign to read only property 'exports' of object '#<Object>'
1 parent 5f344ee commit ab2d0e2

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

Diff for: build/webpack.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ var webpack = require("webpack");
33
const VueLoaderPlugin = require("vue-loader/lib/plugin");
44

55
module.exports = {
6+
mode: "production",
67
entry: "./src/index.js",
78
output: {
89
path: path.resolve(__dirname, "../dist"),

Diff for: dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-web-cam",
3-
"version": "1.4.0",
3+
"version": "1.4.1",
44
"description": "Webcam component for Vuejs applications",
55
"main": "dist/index.js",
66
"author": {

Diff for: src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ const install = function(Vue, opts = {}) {
44
if (install.installed) return;
55
Vue.component(WebCam.name, WebCam);
66
};
7+
78
module.exports = {
89
WebCam,
910
install
1011
};
11-
module.exports.default = module.exports;

0 commit comments

Comments
 (0)