Skip to content
This repository was archived by the owner on Sep 7, 2020. It is now read-only.

Transpile chameleon-sdk dep chmjs/chameleon-runner-android#6 #1

Merged
merged 1 commit into from
Dec 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions generator/templates/default/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
module.exports = {
plugins: [
'lodash',
],
presets: [
'@vue/app',
],
Expand Down
8 changes: 0 additions & 8 deletions generator/templates/default/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@
"chameleon": {
"bundle": "{{ bundleName }}"
},
"babel": {
"plugins": [
"lodash"
],
"presets": [
"@vue/app"
]
},
"jest": {
"moduleNameMapper": {
"@/(.*)$": "<rootDir>/src/$1"
Expand Down
3 changes: 3 additions & 0 deletions generator/templates/default/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ const globalSuffix = isMeta ? '_META' : '';

module.exports = {
lintOnSave: true,
transpileDependencies: [
'@nsoft/chameleon-sdk',
],
chainWebpack: (wConfig) => {
wConfig
.when(process.env.NODE_ENV === 'production', (config) => {
Expand Down