Bug 1433123 - Fix console launchpad; r=Honza.

Updating to latest devtools-launchpad add adding the
disablePostCSS option fixes the postCSS errors.
Remove the netmonitor from babelExclude and add the
rewrite-lazy-getter loader fixes the issues about the use
of the object spread operator.

MozReview-Commit-ID: 4wRHuR4q7fz

--HG--
extra : rebase_source : c94063664063ba18d2bb466e99519e701707d6e6
This commit is contained in:
Nicolas Chevobbe 2018-01-25 15:27:25 +01:00
parent 92ed511d9a
commit 1467be06f3
4 changed files with 15 additions and 21 deletions

View File

@ -5,6 +5,8 @@
}
},
"plugins": [
"transform-object-rest-spread"
"transform-react-jsx",
"transform-object-rest-spread",
"transform-flow-strip-types"
]
}

View File

@ -12,21 +12,11 @@
"firefoxProxy": false,
"actions": false
},
"chrome": {
"debug": false,
"host": "localhost",
"port": 9222
},
"node": {
"debug": false,
"host": "localhost",
"port": 9229
},
"firefox": {
"webSocketConnection": false,
"proxyHost": "localhost:9000",
"webSocketHost": "localhost:6080",
"mcPath": "./firefox"
"host": "localhost",
"webSocketPort": 8116,
"tcpPort": 6080
},
"development": {
"serverPort": 8000,

View File

@ -12,12 +12,15 @@
},
"dependencies": {
"amd-loader": "0.0.5",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-es2015": "^6.6.0",
"babel-preset-es2017": "^6.24.1",
"babel-register": "^6.24.0",
"cross-env": "^3.1.3",
"devtools-config": "0.0.12",
"devtools-launchpad": "0.0.96",
"devtools-launchpad": "0.0.115",
"devtools-modules": "0.0.31",
"devtools-source-editor": "=0.0.3",
"enzyme": "^2.4.1",
@ -37,8 +40,5 @@
"require-hacker": "^2.1.4",
"reselect": "^3.0.1",
"sinon": "^1.17.5"
},
"devDependencies": {
"babel-plugin-transform-object-rest-spread": "^6.26.0"
}
}

View File

@ -41,6 +41,8 @@ let webpackConfig = {
"rewrite-browser-require",
// Replace all references to loader.lazyRequire() by require()
"rewrite-lazy-require",
// Replace all references to loader.lazyGetter() by require()
"rewrite-lazy-getter",
],
}
]
@ -142,11 +144,11 @@ webpackConfig.plugins = mappings.map(([regex, res]) =>
new NormalModuleReplacementPlugin(regex, res));
const basePath = path.join(__dirname, "../../").replace(/\\/g, "\\\\");
const baseName = path.basename(__dirname);
let config = toolboxConfig(webpackConfig, getConfig(), {
// Exclude to transpile all scripts in devtools/ but not for this folder
babelExcludes: new RegExp(`^${basePath}(.(?!${baseName}))*$`)
// Exclude to transpile all scripts in devtools/ but not for this folder nor netmonitor.
babelExcludes: new RegExp(`^${basePath}(.(?!(webconsole|netmonitor)))*$`),
disablePostCSS: true,
});
// Remove loaders from devtools-launchpad's webpack.config.js