Просмотр исходного кода

ensure that client-entry.js to be ES6 module

Yuki Takei 6 лет назад
Родитель
Сommit
92cc3df5ca

+ 1 - 1
packages/growi-plugin-pukiwiki-like-linker/package.json

@@ -1,6 +1,6 @@
 {
   "name": "growi-plugin-pukiwiki-like-linker",
-  "version": "2.0.0",
+  "version": "3.0.0",
   "description": "GROWI plugin to add PukiwikiLikeLinker",
   "keywords": [
     "growi",

+ 2 - 2
packages/growi-plugin-pukiwiki-like-linker/src/client-entry.js

@@ -1,6 +1,6 @@
 import PukiwikiLikeLinker from './resource/js/util/PreProcessor/PukiwikiLikeLinker';
 
-module.exports = (crowi, crowiRenderer) => {
+export default (appContainer) => {
   // add preprocessor to head of array
-  crowiRenderer.preProcessors.unshift(new PukiwikiLikeLinker());
+  appContainer.originRenderer.preProcessors.unshift(new PukiwikiLikeLinker());
 };

+ 1 - 1
packages/growi-plugin-pukiwiki-like-linker/src/meta.js

@@ -1,7 +1,7 @@
 const path = require('path');
 
 module.exports = {
-  pluginSchemaVersion: 2,
+  pluginSchemaVersion: 3,
   serverEntries: [
   ],
   clientEntries: [