Jelajahi Sumber

abolish babel plugins

Yuki Takei 7 tahun lalu
induk
melakukan
2e2190048c

+ 0 - 2
packages/growi-plugin-lsx/.babelrc

@@ -8,8 +8,6 @@
     "react"
   ],
   "plugins": [
-    "add-module-exports",
-    "transform-class-properties"
   ],
   "env": {
     "development": {

+ 2 - 2
packages/growi-plugin-lsx/src/client-entry.js

@@ -1,10 +1,10 @@
 import { LsxPreRenderInterceptor } from './resource/js/util/Interceptor/LsxPreRenderInterceptor';
 import { LsxPostRenderInterceptor } from './resource/js/util/Interceptor/LsxPostRenderInterceptor';
 
-export default (crowi, crowiRenderer) => {
+module.exports = (crowi, crowiRenderer) => {
   // add interceptors
   crowi.interceptorManager.addInterceptors([
     new LsxPreRenderInterceptor(crowi),
     new LsxPostRenderInterceptor(crowi),
   ]);
-}
+};

+ 0 - 4
packages/growi-plugin-lsx/src/resource/js/components/PageNode.js

@@ -1,9 +1,5 @@
 export class PageNode {
 
-  pagePath;
-  page;
-  children;
-
   constructor(pagePath) {
     this.pagePath = pagePath;
     this.children = [];