-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #44 from bibixx/fix/add-semi-ssr-setup
Add ssr support
- Loading branch information
Showing
4 changed files
with
54 additions
and
4 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { AnimateCCError } from '../AnimateCCError'; | ||
import { An } from './types'; | ||
|
||
export const AdobeAn = (window as any).AdobeAn as An; | ||
export const AdobeAn = (global as any).AdobeAn as An; | ||
|
||
if (AdobeAn === undefined) { | ||
if (typeof window !== 'undefined' && AdobeAn === undefined) { | ||
throw new AnimateCCError('AdobeAn dependency not found'); | ||
} |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import type createjs from 'createjs-module'; | ||
import { AnimateCCError } from '../AnimateCCError'; | ||
|
||
export const CreateJS = window.createjs as typeof createjs; | ||
export const CreateJS = global.createjs as typeof createjs; | ||
|
||
if (CreateJS === undefined) { | ||
if (typeof window !== 'undefined' && CreateJS === undefined) { | ||
throw new AnimateCCError('createjs dependency not found'); | ||
} |