mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
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:
parent
92ed511d9a
commit
1467be06f3
@ -5,6 +5,8 @@
|
||||
}
|
||||
},
|
||||
"plugins": [
|
||||
"transform-object-rest-spread"
|
||||
"transform-react-jsx",
|
||||
"transform-object-rest-spread",
|
||||
"transform-flow-strip-types"
|
||||
]
|
||||
}
|
||||
|
@ -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,
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user