mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-12 04:38:28 +03:00
8db3da3c3d
rollup.js will be compiled by the rollup package and Babel on build, and will be loaded if a browser doesn't yet support JS modules
24 lines
952 B
JavaScript
24 lines
952 B
JavaScript
/**
|
|
* This file is bundled by Rollup, compiled with Babel and included as
|
|
* <script nomodule> for older browsers that don't yet support JavaScript
|
|
* modules. Browsers that do will ignore this bundle and won't even fetch it
|
|
* from the server. Details:
|
|
* https://github.com/rollup/rollup
|
|
* https://medium.com/dev-channel/es6-modules-in-chrome-canary-m60-ba588dfb8ab7
|
|
*/
|
|
|
|
// Import all modules that are instantiated directly in _includes/_scripts.jade
|
|
import ProgressBar from './progress.js';
|
|
import NavHighlighter from './nav-highlighter.js';
|
|
import Changelog from './changelog.js';
|
|
import GitHubEmbed from './github-embed.js';
|
|
import { ModelLoader, ModelComparer } from './models.js';
|
|
|
|
// Assign to window so they are bundled by rollup
|
|
window.ProgressBar = ProgressBar;
|
|
window.NavHighlighter = NavHighlighter;
|
|
window.Changelog = Changelog;
|
|
window.GitHubEmbed = GitHubEmbed;
|
|
window.ModelLoader = ModelLoader;
|
|
window.ModelComparer = ModelComparer;
|