Skip to content

Commit

Permalink
feat: add esm build, enable sideEffects
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Sep 21, 2018
1 parent 36cfc92 commit c3c61a9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
"plugins": [
"./build/babel-transform-stylus-paths.js"
]
},
"lib": {
"plugins": [
"./build/babel-transform-stylus-paths.js"
]
}
}
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ dev/*css
!dev/lint-commit-message.js
!dev/warn-npm-install.js
/es5
/es5-temp
/lib
/lib-temp
/dist
/release
.env
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
"module": "dist/vuetify.js",
"jsdelivr": "dist/vuetify.js",
"types": "types/index.d.ts",
"sideEffects": ["*.styl"],
"scripts": {
"watch": "cross-env TARGET=development webpack --config build/config.js --progress --hide-modules --watch",
"dev": "cross-env NODE_ENV=development webpack-dev-server --config build/webpack.dev.config.js --hot",
"build": "concurrently \"yarn build:dist --no-progress\" \"yarn build:es5\" -n\"dist,es5\" --kill-others-on-fail -r",
"build": "concurrently \"yarn build:dist --no-progress\" \"yarn build:lib\" -n\"dist,lib\" --kill-others-on-fail -r",
"build:dev": "cross-env NODE_ENV=production node build/webpack.dev.config.js",
"build:dist": "rimraf dist && cross-env NODE_ENV=production webpack --config build/config.js --progress --hide-modules",
"build:es5": "rimraf es5 es5-temp && tsc -p tsconfig.dist.json && cross-env NODE_ENV=es5 babel es5-temp --out-dir es5 --source-maps -q",
"build:lib": "rimraf es5 lib lib-temp && tsc -p tsconfig.dist.json && cross-env NODE_ENV=lib babel lib-temp --out-dir lib --source-maps -q && cross-env NODE_ENV=es5 babel lib-temp --out-dir es5 --source-maps -q",
"debug-build": "node --inspect --debug-brk build/config.js",
"debug:test": "cross-env NODE_ENV=test node --inspect --inspect-brk ./node_modules/jest/bin/jest.js --no-cache -i --verbose",
"test": "node build/run-tests.js",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.dist.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"outDir": "./es5-temp",
"outDir": "./lib-temp",
"sourceMap": false,
"inlineSourceMap": true,
"inlineSources": true
Expand Down

0 comments on commit c3c61a9

Please sign in to comment.