Skip to content

Commit

Permalink
feat: Added browser and module files
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyhuy committed Sep 13, 2020
1 parent bf2ecd2 commit 9581389
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
14 changes: 10 additions & 4 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
module.exports = {
presets: ['@babel/preset-env'],
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-transform-modules-commonjs'
presets: [
[
'@babel/preset-env',
{
targets: {
esmodules: true
}
}
]
],
plugins: ['@babel/plugin-transform-runtime'],
sourceMaps: 'both'
}
2 changes: 2 additions & 0 deletions packages/ggsmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
"unified": "^9.2.0"
},
"main": "dist/index.js",
"browser": "dist/index.js",
"module": "dist/index.js",
"scripts": {
"build": "cross-env BABEL_ENV=production babel index.js --config-file ../../babel.config.js --ignore '**/*.spec.js,**/*.test.js' --out-dir ./dist"
}
Expand Down
2 changes: 2 additions & 0 deletions packages/remark-color-text/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
],
"license": "MIT",
"main": "dist/index.js",
"browser": "dist/index.js",
"module": "dist/index.js",
"scripts": {
"build": "cross-env BABEL_ENV=production babel index.js --config-file ../../babel.config.js --out-dir ."
}
Expand Down
2 changes: 2 additions & 0 deletions packages/remark-spoilers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
],
"license": "MIT",
"main": "dist/index.js",
"browser": "dist/index.js",
"module": "dist/index.js",
"scripts": {
"build": "cross-env BABEL_ENV=production babel index.js --config-file ../../babel.config.js --ignore '**/*.spec.js,**/*.test.js' --out-dir ./dist"
}
Expand Down
2 changes: 2 additions & 0 deletions packages/remark-text-alignment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"space-separated-tokens": "^1.1.5"
},
"main": "dist/index.js",
"browser": "dist/index.js",
"module": "dist/index.js",
"scripts": {
"build": "cross-env BABEL_ENV=production babel index.js --config-file ../../babel.config.js --ignore '**/*.spec.js,**/*.test.js' --out-dir ./dist"
}
Expand Down

0 comments on commit 9581389

Please sign in to comment.