Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 47 additions & 93 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@
"@enonic/react4xp": "^7.0.0",
"@jest/globals": "^30.2.0",
"@jest/types": "^30.4.1",
"@rollup/plugin-alias": "^6.0.0",
"@rollup/plugin-commonjs": "^29.0.3",
"@rollup/plugin-node-resolve": "^16.0.3",
"@sinonjs/text-encoding": "^0.7.3",
"@swc/core": "^1.15.47",
"@types/jest": "^30.0.0",
"@types/react": "^19.2.18",
Expand Down
8 changes: 1 addition & 7 deletions rollup.config.nodePolyfills.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import alias from '@rollup/plugin-alias';
import commonjs from '@rollup/plugin-commonjs';
import nodeResolve from '@rollup/plugin-node-resolve';
import {dirname, join} from 'path';
import {dirname} from 'path';
import esbuild from 'rollup-plugin-esbuild'
import {fileURLToPath} from 'url';

Expand All @@ -20,11 +19,6 @@ export default {
},
// Some hooks are run in parallel but others, like the transform hook notably, are run in sequence, and the hooks are passed the result of the previous one.
plugins: [
alias({
entries: [
{ find: '@sinonjs/text-encoding', replacement: join(__dirname,'./node_modules/@sinonjs/text-encoding/lib/encoding.js') },
]
}),
nodeResolve(), // Resolves modules from node_modules (e.g. core-js internals)
commonjs(), // A Rollup plugin to convert CommonJS modules to ES6, so they can be included in a Rollup bundle
esbuild({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public static Context buildContext( final Engine engine )
.engine( engine )
.allowExperimentalOptions( true )
.allowHostAccess( HostAccess.NONE )
.option( "js.text-encoding", "true" )
.build();
}
finally
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public class Renderer

public static final String KEY_HTML = "html";

private static final String POLYFILL_BASICS_FILE = "/lib/enonic/polyfill-react4xp/polyfillBasics.js";

private static final String POLYFILL_REACT4XP_NODE_FILE = "/lib/enonic/polyfill-react4xp/nodePolyfills.js";

private final long id;
Expand Down Expand Up @@ -57,7 +55,6 @@ public Renderer( final ResourceReader resourceReader, final Config config, final

LOG.debug( "#{}:{} loading polyfills ...", this.id, this.libraryName );

this.assetLoader.loadAssetIntoEngine( POLYFILL_BASICS_FILE, true );
this.assetLoader.loadAssetIntoEngine( POLYFILL_REACT4XP_NODE_FILE, true );

LOG.debug( "#{}:{} loading globals...", this.id, this.libraryName );
Expand Down
Loading
Loading