Skip to content

es6 type=module (in browser) is supported? (even with es-module-shims?) #356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
viT-1 opened this issue Aug 20, 2019 · 3 comments · Fixed by #383
Closed

es6 type=module (in browser) is supported? (even with es-module-shims?) #356

viT-1 opened this issue Aug 20, 2019 · 3 comments · Fixed by #383

Comments

@viT-1
Copy link

viT-1 commented Aug 20, 2019

Where can i found docs about configuring this without webpack plugins (with ttypescript compiler using for ts)?
This package have version on cdn without process.env?

@viT-1
Copy link
Author

viT-1 commented Aug 21, 2019

I tried importmap with es-module-shims

{
	"imports": {
		"vue": ["https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.esm.browser.js"],
		"vue-class-component": ["https://cdn.jsdelivr.net/npm/[email protected]/dist/vue-class-component.esm.js"]
	}
} 

and have error:
ReferenceError: process is not defined at vue-class-component.esm.js:249

@viT-1
Copy link
Author

viT-1 commented Aug 21, 2019

Workaround: add script in template
window.process = { env: { NODE_ENV: 'production' } };

@ktsn
Copy link
Member

ktsn commented Jan 11, 2020

We provide vue-class-component.esm.browser.js and vue-class-component.esm.browser.min.js from v7.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants