This repository has been archived by the owner on Jul 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Preact for wikipedia.de banner (#249)
Updated dependencies for Babel 7 Added jsx plugin Change shared banner modules to ES modules Babel 7 and the `useBuiltIns: 'usage'` setting injects ES6 imports into the CommonJS-based banners. This leads to the error message TypeError: "exports" is read-only` in the compiled banners (See also webpack/webpack#3997 and babel/babel#6980 ). Changed `getSkin` in "BannerFunctions" to preload all skin manipulating classes. Add Preact desktop banner Pass the callback to the child method up the component hierarchy, via a "trigger method", so the mobile banner can call the method for the animation when it shows the fullpage banner. Add explicitly evaluated spaces to TextHighlight child text to circumvent [JSX space-eating behavior][1]. [1]: facebook/react#4134
- Loading branch information
Showing
70 changed files
with
3,480 additions
and
3,760 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ | ||
// debug: true, | ||
useBuiltIns: 'usage', | ||
corejs: { version: 3, proposals: true } | ||
} | ||
] | ||
], | ||
plugins: [ | ||
[ '@babel/plugin-transform-react-jsx', { | ||
pragma: 'h', | ||
pragmaFrag: 'Fragment' | ||
} ], | ||
'@babel/plugin-proposal-class-properties' | ||
], | ||
exclude: /webpack/ | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.