Skip to content
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

update the default JS tag handler check. #438

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## This package is just temporary as fix for my apps in meteor 2.12 and vue2. It wont be maintained once its fixed upstream.

<p align="center"><img src="https://github.com/Akryum/vue-meteor/raw/master/vue%2Bmeteor.png"></p>

<p align="center">
Expand Down
8 changes: 4 additions & 4 deletions packages/vue-component/package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
name: 'akryum:vue-component',
version: '0.16.0',
name: 'bslocombe:vue-component',
version: '0.16.1',
summary: 'VueJS single-file components that hot-reloads',
git: 'https://github.com/Akryum/meteor-vue-component',
documentation: 'README.md',
Expand All @@ -23,8 +23,8 @@ Package.registerBuildPlugin({
'plugin/plugin.js',
],
npmDependencies: {
'postcss': '7.0.16',
'postcss-load-config': '2.0.0',
"postcss": "8.4.33",
"postcss-load-config": "6.0.1",
'postcss-selector-parser': '2.2.3',
'postcss-modules': '1.4.1',
'socket.io': '2.2.0',
Expand Down
4 changes: 2 additions & 2 deletions packages/vue-component/plugin/post-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ loadPostcssConfig = Meteor.wrapAsync(function (cb) {
}

loaded.then(config => {
let plugins = []
let plugins = {}
let options = {}

// merge postcss config file
if (config && config.plugins) {
plugins = plugins.concat(config.plugins)
plugins = {...plugins, ...config.plugins}
}
if (config && config.options) {
options = Object.assign({}, config.options, options)
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-component/plugin/tag-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ VueComponentTagHandler = class VueComponentTagHandler {
}

// Lang
if (sfcBlock.lang !== undefined) {
if (sfcBlock.lang !== undefined && sfcBlock.lang !== 'js') {
let lang = sfcBlock.lang
try {
let compile = global.vue.lang[lang]
Expand Down