Skip to content
Open
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
1 change: 1 addition & 0 deletions sample/src/index.html → sample/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -302,5 +302,6 @@ <h3>Logout</h3>
<button id="logout-btn">Logout</button>
</section>
</div>
<script type="module" src="/src/index.ts"></script>
</body>
</html>
11 changes: 4 additions & 7 deletions sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@
"license": "MIT",
"main": "./src/index.ts",
"scripts": {
"start": "webpack serve"
"start": "vite"
},
"dependencies": {
"@moneytree/mt-link-javascript-sdk": "portal:../"
},
"devDependencies": {
"html-webpack-plugin": "^4.5.0",
"url-safe-base64": "^1.1.1",
"webpack": "^5.104.1",
"webpack-cli": "^4.2.0",
"webpack-dev-server": "^3.11.0"
"@vitejs/plugin-basic-ssl": "^2.3.0",
"vite": "^8.2.0"
},
"engines": {
"node": ">=12"
"node": ">=20"
}
}
2 changes: 1 addition & 1 deletion sample/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ elements.openServiceOptionsElms.showBackBarOn.onchange = () => {
const initializeLinkSDK = (options: InitOptions = {}) => {
mtLinkSdk.init('af84f08f40970caf17f2e53b31771ceb50d0f32f7d44b826753982e809395290', {
sdkPlatform: 'js',
redirectUri: 'https://localhost:9000',
redirectUri: 'https://localhost:9001',
locale: 'en',
mode: 'staging',
...options
Expand Down
5 changes: 3 additions & 2 deletions sample/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"suppressImplicitAnyIndexErrors": true,
"module": "commonjs",
"target": "es5",
"module": "ESNext",
"moduleResolution": "bundler",
"target": "ES2020",
"lib": ["es6", "es2017", "dom"]
}
}
16 changes: 16 additions & 0 deletions sample/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { defineConfig } from 'vite';
import basicSsl from '@vitejs/plugin-basic-ssl';

export default defineConfig({
plugins: [basicSsl()],

server: {
// So it can run without conflicting with Vault
port: 9001
},

// So it can bundle CJS -> ESM through the portal
optimizeDeps: {
include: ['@moneytree/mt-link-javascript-sdk']
}
});
37 changes: 0 additions & 37 deletions sample/webpack.config.js

This file was deleted.

Loading