Skip to content

Commit

Permalink
feat: added core JS
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyhuy committed Sep 13, 2020
1 parent 78c5ea6 commit 1d9e424
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 4 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"devDependencies": {
"@babel/cli": "^7.11.6",
"@babel/plugin-transform-runtime": "^7.11.0",
"core-js": "^3.6.5",
"cross-env": "^7.0.2",
"dedent": "^0.7.0",
"eslint": "^7.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ggsmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"remark-text-alignment": "^0.4.0",
"unified": "^9.2.0"
},
"main": "dist/index.js",
"main": "src/index.js",
"browser": "dist/index.js",
"module": "dist/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions packages/ggsmark/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import markdown from 'remark-parse'
import merge from 'deepmerge'
import gh from 'hast-util-sanitize/lib/github'
import sanitize from 'rehype-sanitize'
import 'core-js'

// Plugins
import iframe from 'remark-iframes'
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-color-text/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"remark"
],
"license": "MIT",
"main": "dist/index.js",
"main": "src/index.js",
"browser": "dist/index.js",
"module": "dist/index.js",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions packages/remark-color-text/src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'core-js'

const C_NEWLINE = '\n'
const C_NEWPARAGRAPH = '\n\n'

Expand Down
2 changes: 1 addition & 1 deletion packages/remark-spoilers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"remark"
],
"license": "MIT",
"main": "dist/index.js",
"main": "src/index.js",
"browser": "dist/index.js",
"module": "dist/index.js",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions packages/remark-spoilers/src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'core-js'

const C_NEWLINE = '\n'
const C_NEWPARAGRAPH = '\n\n'

Expand Down
2 changes: 1 addition & 1 deletion packages/remark-text-alignment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"space-separated-tokens": "^1.1.5"
},
"main": "dist/index.js",
"main": "src/index.js",
"browser": "dist/index.js",
"module": "dist/index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions packages/remark-text-alignment/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import spaceSeparated from 'space-separated-tokens'
import 'core-js'

const C_NEWLINE = '\n'
const C_NEWPARAGRAPH = '\n\n'
Expand Down

0 comments on commit 1d9e424

Please sign in to comment.