Revert "Merge pull request !2870 from rhodecode-enterprise-ce Polymer-lit-migration-1"
This reverts commit262fefa9a9, reversing changes made to57d841d6ea.
This commit is contained in:
parent
8db8994785
commit
2aebe6862d
18 changed files with 2274 additions and 3337 deletions
|
|
@ -15,19 +15,11 @@ let babelRCOptions = {
|
|||
"presets": [
|
||||
["env", {
|
||||
"targets": {
|
||||
"esmodules": true
|
||||
},
|
||||
"exclude": [
|
||||
"transform-es2015-classes",
|
||||
"transform-regenerator",
|
||||
"transform-async-to-generator"
|
||||
]
|
||||
"browsers": ["last 2 versions"]
|
||||
}
|
||||
}]
|
||||
],
|
||||
"plugins": [
|
||||
["transform-class-properties", { "loose": true }],
|
||||
"transform-object-rest-spread"
|
||||
]
|
||||
"plugins": ["transform-object-rest-spread"]
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
|
|
@ -75,10 +67,9 @@ module.exports = {
|
|||
{
|
||||
// If you see a file that ends in .js, just send it to the babel-loader.
|
||||
test: /\.js$/,
|
||||
// Exclude node_modules, but process our Lit components
|
||||
// Babel is configured to NOT transpile ES6 classes (see babelRCOptions exclude)
|
||||
exclude: /node_modules/,
|
||||
use: {loader: 'babel-loader', options: babelRCOptions}
|
||||
// Optionally exclude node_modules from transpilation except for polymer-webpack-loader:
|
||||
// exclude: /node_modules\/(?!polymer-webpack-loader\/).*/
|
||||
},
|
||||
// this is required because of bug:
|
||||
// https://github.com/webpack-contrib/polymer-webpack-loader/issues/49
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue