From 15a3d3c433e399fb25ceb887afd2085eec3f07ea Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Thu, 20 Sep 2018 14:21:10 -0400 Subject: [PATCH] fix index.js import of plugin id --- build/manifest/main.go | 6 ++---- webapp/src/manifest.js | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/build/manifest/main.go b/build/manifest/main.go index cf6a2bb..e97d459 100644 --- a/build/manifest/main.go +++ b/build/manifest/main.go @@ -21,10 +21,8 @@ var manifest = struct { } ` -const pluginIdJsFileTemplate = `export default { - id: '%s', - version: '%s', -}; +const pluginIdJsFileTemplate = `export const id = '%s'; +export const version = '%s'; ` func main() { diff --git a/webapp/src/manifest.js b/webapp/src/manifest.js index 07ff6f9..3d3228e 100644 --- a/webapp/src/manifest.js +++ b/webapp/src/manifest.js @@ -1,4 +1,2 @@ -export default { - id: 'com.mattermost.sample-plugin', - version: '0.0.1', -}; +export const id = 'com.mattermost.sample-plugin'; +export const version = '0.0.1';