Skip to content

Commit 73917af

Browse files
committed
chore(sandbox): remove Vite warning
Comply with Vite's limitations on dynamic import: https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars#limitations
1 parent f52abca commit 73917af

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

sandbox/forms/forms-sandbox.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,11 @@ export class FormsSandbox extends LitElement {
7070
console.log(`${this._event.type}: ${this._event.json}`);
7171
}
7272

73-
/**
74-
* @param {string} demo
75-
* @return {string}
76-
*/
77-
_getDemoFilePath(demo) {
78-
return `./form-demo-${demo}.js`;
79-
}
80-
8173
/**
8274
* @param {string} demo
8375
*/
8476
_loadDemo(demo) {
85-
import(this._getDemoFilePath(demo)).then(() => {
77+
import(`./form-demo-${demo}.js`).then(() => {
8678
this._demo = demo;
8779
localStorage.setItem('cc-sandbox-form-demo', demo);
8880
this._event = null;

0 commit comments

Comments
 (0)