mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 07:41:51 +08:00
feat(vue): add custom elements bundle (#23458)
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { getMode, setMode } from '@stencil/core';
|
||||
import { getMode, setMode, setPlatformHelpers } from '@stencil/core';
|
||||
|
||||
import { IonicConfig, Mode } from '../interface';
|
||||
import { isPlatform, setupPlatforms } from '../utils/platform';
|
||||
@ -24,6 +24,18 @@ export const initialize = (userConfig: IonicConfig = {}) => {
|
||||
// Setup platforms
|
||||
setupPlatforms(win);
|
||||
|
||||
const platformHelpers: any = {};
|
||||
if (userConfig._ael) {
|
||||
platformHelpers.ael = userConfig._ael;
|
||||
}
|
||||
if (userConfig._rel) {
|
||||
platformHelpers.rel = userConfig._rel;
|
||||
}
|
||||
if (userConfig._ce) {
|
||||
platformHelpers.ce = userConfig._ce;
|
||||
}
|
||||
setPlatformHelpers(platformHelpers);
|
||||
|
||||
// create the Ionic.config from raw config object (if it exists)
|
||||
// and convert Ionic.config into a ConfigApi that has a get() fn
|
||||
const configObj = {
|
||||
|
||||
Reference in New Issue
Block a user