Skip to content

Commit

Permalink
ponyfill updates
Browse files Browse the repository at this point in the history
  • Loading branch information
justintaylor-dev committed Sep 9, 2022
1 parent f4d24f2 commit d3ca479
Show file tree
Hide file tree
Showing 4 changed files with 794 additions and 489 deletions.
2 changes: 1 addition & 1 deletion cep.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ const config: CEP_Config = {
width: 600,
height: 650,
},
// ...debugAll, // BOLT-CEP-DEBUG-ONLY
],
// .concat(debugAll), // BOLT-CEP-DEBUG-ONLY
build: {
jsxBin: "copy",
sourceMap: true,
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bolt-cep",
"version": "0.4.0",
"version": "0.4.1",
"scripts": {
"dev": "vite",
"debug": "cross-env DEBUG_REACT=true vite build --watch true",
Expand All @@ -18,12 +18,12 @@
"vue": "^3.2.31"
},
"devDependencies": {
"@babel/core": "^7.16.10",
"@babel/core": "^7.19.0",
"@babel/plugin-proposal-class-properties": "^7.16.0",
"@babel/plugin-proposal-object-rest-spread": "^7.16.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.16.4",
"@babel/preset-env": "^7.16.4",
"@babel/preset-env": "^7.19.0",
"@babel/preset-react": "^7.16.0",
"@babel/preset-typescript": "^7.16.0",
"@babel/runtime": "^7.16.3",
Expand Down Expand Up @@ -62,7 +62,7 @@
"types-for-adobe-extras": "^0.0.1",
"typescript": "^4.4.4",
"vite": "^2.9.13",
"vite-cep-plugin": "^0.3.0",
"vite-cep-plugin": "^0.3.1",
"yarn": "^1.22.17"
},
"main": "index.js",
Expand Down
12 changes: 2 additions & 10 deletions vite.es.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import fs from "fs";
import { rollup, watch, RollupOptions, OutputOptions } from "rollup";
import nodeResolve from "@rollup/plugin-node-resolve";
import babel from "@rollup/plugin-babel";
import replace from "@rollup/plugin-replace";
import { jsxInclude, jsxBin } from "vite-cep-plugin";
import { jsxInclude, jsxBin, jsxPonyfill } from "vite-cep-plugin";
import { CEP_Config } from "vite-cep-plugin";
import json from "@rollup/plugin-json";
import path from "path";
Expand All @@ -24,7 +23,6 @@ export const extendscriptConfig = (
treeshake: false,
output: {
file: outPath,
format: "iife",
sourcemap: isPackage
? cepConfig.zxp.sourceMap
: cepConfig.build?.sourceMap,
Expand All @@ -45,13 +43,7 @@ export const extendscriptConfig = (
"@babel/plugin-proposal-class-properties",
],
}),
replace({
"Object.freeze": "",
preventAssignment: true,
sourceMap: isPackage
? cepConfig.zxp.sourceMap
: cepConfig.build?.sourceMap,
}),
jsxPonyfill(),
jsxInclude({
iife: true,
globalThis: GLOBAL_THIS,
Expand Down
Loading

0 comments on commit d3ca479

Please sign in to comment.