2
0
Эх сурвалжийг харах

apply babel-plugin-add-module-exports

Yuki Takei 9 жил өмнө
parent
commit
a8ef2376d2

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

@@ -2,6 +2,9 @@
   "presets": [
     "es2015"
   ],
+  "plugins": [
+    "add-module-exports"
+  ],
   "env": {
     "development": {
       "presets": [

+ 4 - 1
packages/growi-plugin-lsx/package.json

@@ -3,7 +3,9 @@
   "version": "1.0.0",
   "description": "The Crowi Plugin to add lsx tag",
   "main": "lib/index.js",
-  "files": ["lib"],
+  "files": [
+    "lib"
+  ],
   "scripts": {
     "build": "NODE_ENV=production babel src --out-dir lib --source-maps inline",
     "watch": "babel src --out-dir lib --watch --source-maps inline",
@@ -21,6 +23,7 @@
   "homepage": "https://github.com/yuki-takei/crowi-plugin-lsx#readme",
   "devDependencies": {
     "babel-cli": "^6.23.0",
+    "babel-plugin-add-module-exports": "^0.2.1",
     "babel-preset-es2015": "^6.22.0",
     "babel-preset-power-assert": "^1.0.0",
     "babel-register": "^6.23.0",

+ 1 - 1
packages/growi-plugin-lsx/src/meta.js

@@ -1,4 +1,4 @@
-export const meta = {
+export default {
   pluginSchemaVersion: 2,
   serverEntries: [],
   clientEntries: [