Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Fix issue with transpiling
Browse files Browse the repository at this point in the history
  • Loading branch information
jhsware committed Oct 23, 2018
1 parent 9210d00 commit bf8a07a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
20 changes: 15 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
{
"presets": [
["@babel/env", { "modules": false }],
"inferno-app"
["@babel/env", { "modules": false }]
],
"plugins": [
["@babel/proposal-decorators", { "legacy": true}],
"@babel/proposal-class-properties",
"@babel/transform-runtime"
"@babel/transform-runtime",
"@babel/syntax-jsx",
[
"babel-plugin-inferno",
{
"imports": true
}
]
],
"env": {
"production": {

"production": {},
"test": {
"presets": [
["@babel/env", { "modules": false }],
"inferno-app"
]
}
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"prepublish": "NODE_ENV=development npm run build",
"postversion": "git push && git push --tags",
"build-dev": "rm -rf ./dist && cross-env NODE_ENV=development babel lib --out-dir dist --watch --source-maps",
"build-test": "rm -rf ./test/dist && cross-env NODE_ENV=development node_modules/.bin/webpack --config ./test/webpack.config.js",
"build-test-dev": "rm -rf ./test/dist && cross-env NODE_ENV=development node_modules/.bin/webpack --watch --config ./test/webpack.config.js",
"build-test": "rm -rf ./test/dist && cross-env NODE_ENV=test node_modules/.bin/webpack --config ./test/webpack.config.js",
"build-test-dev": "rm -rf ./test/dist && cross-env NODE_ENV=test node_modules/.bin/webpack --watch --config ./test/webpack.config.js",
"build": "npm run build:es && npm run build:dist && npm run build:dist:prod & npm run build:legacy",
"build:clean": "rm -rf dist/ && rm -rf lib/",
"build:es": "cross-env NODE_ENV=development babel src --out-dir lib",
Expand Down
1 change: 0 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const baseConfig = (outputFormat) => {

return {
input: 'src/index.js',
runtimeHelpers: true,
plugins: [
nodeResolve(),
babel({
Expand Down

0 comments on commit bf8a07a

Please sign in to comment.