Skip to content

Commit ffa6d6f

Browse files
authored
fix(engine): Add a means of loading engine directly to the window object (#2369)
* fix(engine): Add a means of loading engine directly to the window object * Added to debug in wrong command
1 parent 2f83430 commit ffa6d6f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
(function(window) {
3+
window.ace_ibma = ace;
4+
})(typeof window === 'object' ? window : this);

accessibility-checker-engine/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"scripts": {
77
"build-node": "npm run prebuild && npx webpack --config webpack-node.config.js && shx cp dist/index.d.ts dist/ace-node.d.ts",
88
"build-node-debug": "npm run prebuild && npx webpack --config webpack-node-debug.config.js && shx cp dist/index.d.ts dist/ace-node-debug.d.ts",
9-
"build": "npm run prebuild && npx webpack --config webpack.config.js && shx cp dist/index.d.ts dist/ace.d.ts",
10-
"build-debug": "npm run prebuild && npx webpack --config webpack-debug.config.js && shx cp dist/index.d.ts dist/ace-debug.d.ts",
9+
"build": "npm run prebuild && npx webpack --config webpack.config.js && shx cp dist/index.d.ts dist/ace.d.ts && cat dist/ace.js ace-window-add.js >dist/ace-window.js",
10+
"build-debug": "npm run prebuild && npx webpack --config webpack-debug.config.js && shx cp dist/index.d.ts dist/ace-debug.d.ts && cat dist/ace-debug.js ace-window-add.js >dist/ace-window-debug.js",
1111
"prebuild": "ts-node src/genRuleIndex.ts",
1212
"test": "npm run prebuild && karma start",
1313
"serve": "serve .",

0 commit comments

Comments
 (0)