main
Last change
on this file since 65b6638 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
800 bytes
|
Line | |
---|
1 | import createAsyncLoadingHighlighter from './async-syntax-highlighter';
|
---|
2 | import languageLoaders from './async-languages/prism';
|
---|
3 | export default createAsyncLoadingHighlighter({
|
---|
4 | loader: function loader() {
|
---|
5 | return import(
|
---|
6 | /* webpackChunkName:"react-syntax-highlighter/refractor-core-import" */
|
---|
7 | 'refractor/core').then(function (module) {
|
---|
8 | // Webpack 3 returns module.exports as default as module, but webpack 4 returns module.exports as module.default
|
---|
9 | return module["default"] || module;
|
---|
10 | });
|
---|
11 | },
|
---|
12 | isLanguageRegistered: function isLanguageRegistered(instance, language) {
|
---|
13 | return instance.registered(language);
|
---|
14 | },
|
---|
15 | languageLoaders: languageLoaders,
|
---|
16 | registerLanguage: function registerLanguage(instance, name, language) {
|
---|
17 | return instance.register(language);
|
---|
18 | }
|
---|
19 | }); |
---|
Note:
See
TracBrowser
for help on using the repository browser.