@shijiu/jsview-vue 0.9.631 → 1.9.628
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dom/bin/jsview-browser-debug-dom.min.js +1 -1
- package/dom/bin/jsview-dom.min.js +1 -1
- package/dom/{target_core_revision.js → target_core_revision.mjs} +6 -6
- package/index.d.ts +1 -0
- package/index.js +1 -10
- package/loader/jsview-main.js +1 -1
- package/loader/loader.js +0 -1
- package/package.json +3 -3
- package/patches/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +17225 -2182
- package/patches/node_modules/@vue/compiler-sfc/dist/jsview-css-to-js.js +10 -12
- package/patches/node_modules/@vue/compiler-sfc/dist/jsview-style-format.js +5 -1
- package/patches/node_modules/@vue/compiler-sfc/dist/jsview-style-types.js +6 -1
- package/patches/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +6972 -7050
- package/patches/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +221 -117
- package/patches/node_modules/postcss-js/objectifier.js +4 -4
- package/samples/Basic/App.vue +2 -2
- package/samples/Basic/components/FontStyle.css +1 -1
- package/samples/Basic/components/anim/AnimGroup.vue +4 -4
- package/samples/Basic/components/div/DivGroup1.vue +4 -4
- package/samples/Basic/components/div/DivGroup2.vue +5 -5
- package/samples/Basic/components/img/ImageGroup.vue +2 -2
- package/samples/Basic/components/panel/Panel1.vue +6 -6
- package/samples/Basic/components/panel/Panel2.vue +2 -2
- package/samples/Basic/components/text/TextGroup1.vue +4 -4
- package/samples/Basic/components/text/TextGroup2.vue +2 -2
- package/samples/Basic/components/text/TextOverflow.vue +2 -2
- package/samples/DemoHomepage/App.vue +1 -1
- package/samples/DemoHomepage/components/BodyFrame.vue +0 -2
- package/samples/DemoHomepage/router.js +36 -51
- package/samples/DemoHomepage/views/Homepage.vue +9 -5
- package/samples/HashHistory/router.js +6 -6
- package/samples/Input/App.vue +17 -8
- package/samples/Input/InputPanel.vue +11 -18
- package/samples/MetroWidgetDemos/PingPong/App.vue +3 -3
- package/samples/MetroWidgetDemos/PingPong/AppPage.vue +2 -17
- package/samples/MetroWidgetDemos/PingPong/AppTab.vue +10 -3
- package/samples/MetroWidgetDemos/PingPong/{TabItem.vue → Item.vue} +10 -2
- package/samples/MetroWidgetDemos/PingPong/ViewSwiper.vue +2 -2
- package/samples/Preload/App.vue +11 -16
- package/samples/SprayView/App.vue +2 -2
- package/samples/TextureAnimation/App2.vue +14 -42
- package/samples/VideoDemo/App.vue +2 -2
- package/samples/VisibleSensorDemo/App.vue +25 -92
- package/scripts/jsview-post-install.js +5 -5
- package/scripts/jsview-run-android.js +12 -11
- package/utils/JsViewEngineWidget/JsvFocusBlock.vue +56 -52
- package/utils/JsViewEngineWidget/JsvFocusManager.js +1 -1
- package/utils/JsViewPlugin/JsvPlayer/JsvMedia.js +2 -36
- package/utils/JsViewPlugin/JsvPlayer/JsvPlayer.vue +0 -14
- package/utils/JsViewPlugin/JsvPlayer/index.js +1 -8
- package/utils/JsViewPlugin/JsvPlayer/version.js +4 -4
- package/utils/JsViewVueTools/JsvHashHistory.js +12 -12
- package/utils/JsViewVueTools/index.d.ts +5 -1
- package/utils/JsViewVueTools/index.js +1 -2
- package/utils/JsViewVueWidget/BrowserDebugWidget/BrowserPreload.vue +1 -11
- package/utils/JsViewVueWidget/JsvActorMove/JsvActorMove.vue +2 -2
- package/utils/JsViewVueWidget/JsvInput/Cursor.vue +2 -4
- package/utils/JsViewVueWidget/JsvInput/JsvInput.vue +12 -13
- package/utils/JsViewVueWidget/JsvPreload/JsvPreload.vue +41 -37
- package/utils/JsViewVueWidget/JsvTextureAnim/JsvTextureAnim.vue +8 -1
- package/utils/JsViewVueWidget/JsvVisibleSensor/JsvVisibleSensor.vue +1 -1
- package/utils/index.d.ts +3 -0
- package/utils/index.js +10 -0
- package/dom/jsv-browser-debug-dom.js_1 +0 -8
- package/dom/jsv-dom.js_1 +0 -6
- package/dom/jsv-forge-define.js_1 +0 -6
- package/patches/node_modules/@babel/preset-env/lib/available-plugins.js +0 -219
- package/patches/node_modules/@vue/cli-plugin-typescript/index.js +0 -100
- package/patches/node_modules/@vue/cli-service/lib/commands/serve.js +0 -395
- package/patches/node_modules/@vue/cli-service/lib/config/app.js +0 -272
- package/patches/node_modules/@vue/cli-service/lib/config/assets.js +0 -70
- package/patches/node_modules/@vue/cli-service/lib/config/base.js +0 -212
- package/patches/node_modules/vue-loader/dist/resolveScript.js +0 -70
- package/samples/Collision/App.vue +0 -452
- package/samples/ImpactStop/App.vue +0 -435
- package/samples/TextureAnimation/assets/light.png +0 -0
- package/samples/TextureAnimation/assets/light2.png +0 -0
- package/utils/JsViewVueTools/JsvImpactTracer.js +0 -113
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/** @type {import('@vue/cli-service').ServicePlugin} */
|
|
2
|
-
module.exports = (api, options) => {
|
|
3
|
-
const getAssetPath = require('../util/getAssetPath')
|
|
4
|
-
const getVueMajor = require('../util/getVueMajor')
|
|
5
|
-
|
|
6
|
-
const inlineLimit = -1
|
|
7
|
-
|
|
8
|
-
const vueMajor = getVueMajor(api.getCwd())
|
|
9
|
-
const supportsEsModuleAsset = (vueMajor !== 2)
|
|
10
|
-
|
|
11
|
-
const genAssetSubPath = dir => {
|
|
12
|
-
return getAssetPath(
|
|
13
|
-
options,
|
|
14
|
-
`${dir}/[name]${options.filenameHashing ? '.[hash:8]' : ''}.[ext]`
|
|
15
|
-
)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// TODO: use asset modules for webpack 5
|
|
19
|
-
// <https://webpack.js.org/guides/asset-modules/>
|
|
20
|
-
|
|
21
|
-
const genUrlLoaderOptions = dir => {
|
|
22
|
-
return {
|
|
23
|
-
limit: inlineLimit,
|
|
24
|
-
esModule: supportsEsModuleAsset,
|
|
25
|
-
// use explicit fallback to avoid regression in url-loader>=1.1.0
|
|
26
|
-
fallback: {
|
|
27
|
-
loader: require.resolve('file-loader'),
|
|
28
|
-
options: {
|
|
29
|
-
name: genAssetSubPath(dir),
|
|
30
|
-
esModule: supportsEsModuleAsset
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
api.chainWebpack(webpackConfig => {
|
|
37
|
-
webpackConfig.module
|
|
38
|
-
.rule('images')
|
|
39
|
-
.test(/\.(png|jpe?g|gif|webp|avif|bmp)(\?.*)?$/) // QCode Modified
|
|
40
|
-
.use('url-loader')
|
|
41
|
-
.loader(require.resolve('url-loader'))
|
|
42
|
-
.options(genUrlLoaderOptions('img'))
|
|
43
|
-
|
|
44
|
-
// do not base64-inline SVGs.
|
|
45
|
-
// https://github.com/facebookincubator/create-react-app/pull/1180
|
|
46
|
-
webpackConfig.module
|
|
47
|
-
.rule('svg')
|
|
48
|
-
.test(/\.(svg)(\?.*)?$/)
|
|
49
|
-
.use('file-loader')
|
|
50
|
-
.loader(require.resolve('file-loader'))
|
|
51
|
-
.options({
|
|
52
|
-
name: genAssetSubPath('img'),
|
|
53
|
-
esModule: supportsEsModuleAsset
|
|
54
|
-
})
|
|
55
|
-
|
|
56
|
-
webpackConfig.module
|
|
57
|
-
.rule('media')
|
|
58
|
-
.test(/\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/)
|
|
59
|
-
.use('url-loader')
|
|
60
|
-
.loader(require.resolve('url-loader'))
|
|
61
|
-
.options(genUrlLoaderOptions('media'))
|
|
62
|
-
|
|
63
|
-
webpackConfig.module
|
|
64
|
-
.rule('fonts')
|
|
65
|
-
.test(/\.(woff2?|eot|ttf|otf)(\?.*)?$/i)
|
|
66
|
-
.use('url-loader')
|
|
67
|
-
.loader(require.resolve('url-loader'))
|
|
68
|
-
.options(genUrlLoaderOptions('fonts'))
|
|
69
|
-
})
|
|
70
|
-
}
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
const path = require('path')
|
|
2
|
-
const { semver } = require('@vue/cli-shared-utils')
|
|
3
|
-
|
|
4
|
-
/** @type {import('@vue/cli-service').ServicePlugin} */
|
|
5
|
-
module.exports = (api, options) => {
|
|
6
|
-
const cwd = api.getCwd()
|
|
7
|
-
const webpack = require('webpack')
|
|
8
|
-
const webpackMajor = semver.major(webpack.version)
|
|
9
|
-
const vueMajor = require('../util/getVueMajor')(cwd)
|
|
10
|
-
|
|
11
|
-
api.chainWebpack(webpackConfig => {
|
|
12
|
-
const isLegacyBundle = process.env.VUE_CLI_MODERN_MODE && !process.env.VUE_CLI_MODERN_BUILD
|
|
13
|
-
const resolveLocal = require('../util/resolveLocal')
|
|
14
|
-
|
|
15
|
-
// https://github.com/webpack/webpack/issues/11467#issuecomment-691873586
|
|
16
|
-
if (webpackMajor !== 4) {
|
|
17
|
-
webpackConfig.module
|
|
18
|
-
.rule('esm')
|
|
19
|
-
.test(/\.m?jsx?$/)
|
|
20
|
-
.resolve.set('fullySpecified', false)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
webpackConfig
|
|
24
|
-
.mode('development')
|
|
25
|
-
.context(api.service.context)
|
|
26
|
-
// QCode Modified >>>>>
|
|
27
|
-
.entry('main.jsv')
|
|
28
|
-
.add(api.resolve('node_modules/@shijiu/jsview-vue/loader/jsview-main.js'))
|
|
29
|
-
// QCode Modified <<<<<
|
|
30
|
-
.end()
|
|
31
|
-
.output
|
|
32
|
-
.path(api.resolve(options.outputDir))
|
|
33
|
-
.filename(isLegacyBundle ? '[name]-legacy.js' : '[name].js')
|
|
34
|
-
.publicPath(options.publicPath)
|
|
35
|
-
|
|
36
|
-
webpackConfig.resolve
|
|
37
|
-
.extensions
|
|
38
|
-
.merge(['.mjs', '.js', '.jsx', '.vue', '.json', '.wasm'])
|
|
39
|
-
.end()
|
|
40
|
-
.modules
|
|
41
|
-
.add('node_modules')
|
|
42
|
-
.add(api.resolve('node_modules'))
|
|
43
|
-
.add(resolveLocal('node_modules'))
|
|
44
|
-
.end()
|
|
45
|
-
.alias
|
|
46
|
-
.set('@', api.resolve('src'))
|
|
47
|
-
.set('jsview', api.resolve('node_modules/@shijiu/jsview-vue')) // QCode Added
|
|
48
|
-
|
|
49
|
-
webpackConfig.resolveLoader
|
|
50
|
-
.modules
|
|
51
|
-
.add('node_modules')
|
|
52
|
-
.add(api.resolve('node_modules'))
|
|
53
|
-
.add(resolveLocal('node_modules'))
|
|
54
|
-
|
|
55
|
-
webpackConfig.module
|
|
56
|
-
.noParse(/^(vue|vue-router|vuex|vuex-router-sync)$/)
|
|
57
|
-
|
|
58
|
-
// js is handled by cli-plugin-babel ---------------------------------------
|
|
59
|
-
|
|
60
|
-
// vue-loader --------------------------------------------------------------
|
|
61
|
-
if (vueMajor === 2) {
|
|
62
|
-
// for Vue 2 projects
|
|
63
|
-
const vueLoaderCacheConfig = api.genCacheConfig('vue-loader', {
|
|
64
|
-
'vue-loader': require('@vue/vue-loader-v15/package.json').version,
|
|
65
|
-
'@vue/component-compiler-utils': require('@vue/component-compiler-utils/package.json').version,
|
|
66
|
-
'vue-template-compiler': require('vue-template-compiler/package.json').version
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
webpackConfig.resolve
|
|
70
|
-
.alias
|
|
71
|
-
.set(
|
|
72
|
-
'vue$',
|
|
73
|
-
options.runtimeCompiler
|
|
74
|
-
? 'vue/dist/vue.esm.js'
|
|
75
|
-
: 'vue/dist/vue.runtime.esm.js'
|
|
76
|
-
)
|
|
77
|
-
|
|
78
|
-
webpackConfig.module
|
|
79
|
-
.rule('vue')
|
|
80
|
-
.test(/\.vue$/)
|
|
81
|
-
.use('cache-loader')
|
|
82
|
-
.loader(require.resolve('cache-loader'))
|
|
83
|
-
.options(vueLoaderCacheConfig)
|
|
84
|
-
.end()
|
|
85
|
-
.use('vue-loader')
|
|
86
|
-
.loader(require.resolve('@vue/vue-loader-v15'))
|
|
87
|
-
.options(Object.assign({
|
|
88
|
-
compilerOptions: {
|
|
89
|
-
whitespace: 'condense'
|
|
90
|
-
}
|
|
91
|
-
}, vueLoaderCacheConfig))
|
|
92
|
-
|
|
93
|
-
webpackConfig
|
|
94
|
-
.plugin('vue-loader')
|
|
95
|
-
.use(require('@vue/vue-loader-v15').VueLoaderPlugin)
|
|
96
|
-
|
|
97
|
-
// some plugins may implicitly relies on the `vue-loader` dependency path name
|
|
98
|
-
// such as vue-cli-plugin-apollo
|
|
99
|
-
// <https://github.com/Akryum/vue-cli-plugin-apollo/blob/d9fe48c61cc19db88fef4e4aa5e49b31aa0c44b7/index.js#L88>
|
|
100
|
-
// so we need a hotfix for that
|
|
101
|
-
webpackConfig
|
|
102
|
-
.resolveLoader
|
|
103
|
-
.modules
|
|
104
|
-
.prepend(path.resolve(__dirname, './vue-loader-v15-resolve-compat'))
|
|
105
|
-
} else if (vueMajor === 3) {
|
|
106
|
-
// for Vue 3 projects
|
|
107
|
-
const vueLoaderCacheConfig = api.genCacheConfig('vue-loader', {
|
|
108
|
-
'vue-loader': require('vue-loader/package.json').version,
|
|
109
|
-
'@vue/compiler-sfc': require('@vue/compiler-sfc/package.json').version
|
|
110
|
-
})
|
|
111
|
-
|
|
112
|
-
webpackConfig.resolve
|
|
113
|
-
.alias
|
|
114
|
-
.set(
|
|
115
|
-
'vue$',
|
|
116
|
-
options.runtimeCompiler
|
|
117
|
-
? 'vue/dist/vue.esm-bundler.js'
|
|
118
|
-
: 'vue/dist/vue.runtime.esm-bundler.js'
|
|
119
|
-
)
|
|
120
|
-
|
|
121
|
-
webpackConfig.module
|
|
122
|
-
.rule('vue')
|
|
123
|
-
.test(/\.vue$/)
|
|
124
|
-
.use('cache-loader')
|
|
125
|
-
.loader(require.resolve('cache-loader'))
|
|
126
|
-
.options(vueLoaderCacheConfig)
|
|
127
|
-
.end()
|
|
128
|
-
.use('vue-loader')
|
|
129
|
-
.loader(require.resolve('vue-loader'))
|
|
130
|
-
.options({
|
|
131
|
-
...vueLoaderCacheConfig,
|
|
132
|
-
compilerOptions: { isCustomElement: tag => tag === 'fdiv' }, // QCode Added
|
|
133
|
-
babelParserPlugins: ['jsx', 'classProperties', 'decorators-legacy']
|
|
134
|
-
})
|
|
135
|
-
.end()
|
|
136
|
-
.end()
|
|
137
|
-
|
|
138
|
-
webpackConfig
|
|
139
|
-
.plugin('vue-loader')
|
|
140
|
-
.use(require('vue-loader').VueLoaderPlugin)
|
|
141
|
-
|
|
142
|
-
// feature flags <http://link.vuejs.org/feature-flags>
|
|
143
|
-
webpackConfig
|
|
144
|
-
.plugin('feature-flags')
|
|
145
|
-
.use(webpack.DefinePlugin, [{
|
|
146
|
-
__VUE_OPTIONS_API__: 'true',
|
|
147
|
-
__VUE_PROD_DEVTOOLS__: 'false'
|
|
148
|
-
}])
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
// https://github.com/vuejs/vue-loader/issues/1435#issuecomment-869074949
|
|
152
|
-
webpackConfig.module
|
|
153
|
-
.rule('vue-style')
|
|
154
|
-
.test(/\.vue$/)
|
|
155
|
-
.resourceQuery(/type=style/)
|
|
156
|
-
.sideEffects(true)
|
|
157
|
-
|
|
158
|
-
// Other common pre-processors ---------------------------------------------
|
|
159
|
-
const maybeResolve = name => {
|
|
160
|
-
try {
|
|
161
|
-
return require.resolve(name)
|
|
162
|
-
} catch (error) {
|
|
163
|
-
return name
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
webpackConfig.module
|
|
168
|
-
.rule('pug')
|
|
169
|
-
.test(/\.pug$/)
|
|
170
|
-
.oneOf('pug-vue')
|
|
171
|
-
.resourceQuery(/vue/)
|
|
172
|
-
.use('pug-plain-loader')
|
|
173
|
-
.loader(maybeResolve('pug-plain-loader'))
|
|
174
|
-
.end()
|
|
175
|
-
.end()
|
|
176
|
-
.oneOf('pug-template')
|
|
177
|
-
.use('raw')
|
|
178
|
-
.loader(maybeResolve('raw-loader'))
|
|
179
|
-
.end()
|
|
180
|
-
.use('pug-plain-loader')
|
|
181
|
-
.loader(maybeResolve('pug-plain-loader'))
|
|
182
|
-
.end()
|
|
183
|
-
.end()
|
|
184
|
-
|
|
185
|
-
const resolveClientEnv = require('../util/resolveClientEnv')
|
|
186
|
-
webpackConfig
|
|
187
|
-
.plugin('define')
|
|
188
|
-
.use(webpack.DefinePlugin, [
|
|
189
|
-
resolveClientEnv(options)
|
|
190
|
-
])
|
|
191
|
-
|
|
192
|
-
webpackConfig
|
|
193
|
-
.plugin('case-sensitive-paths')
|
|
194
|
-
.use(require('case-sensitive-paths-webpack-plugin'))
|
|
195
|
-
|
|
196
|
-
// friendly error plugin displays very confusing errors when webpack
|
|
197
|
-
// fails to resolve a loader, so we provide custom handlers to improve it
|
|
198
|
-
const { transformer, formatter } = require('../util/resolveLoaderError')
|
|
199
|
-
webpackConfig
|
|
200
|
-
.plugin('friendly-errors')
|
|
201
|
-
.use(require('@soda/friendly-errors-webpack-plugin'), [{
|
|
202
|
-
additionalTransformers: [transformer],
|
|
203
|
-
additionalFormatters: [formatter]
|
|
204
|
-
}])
|
|
205
|
-
|
|
206
|
-
const TerserPlugin = require('terser-webpack-plugin')
|
|
207
|
-
const terserOptions = require('./terserOptions')
|
|
208
|
-
webpackConfig.optimization
|
|
209
|
-
.minimizer('terser')
|
|
210
|
-
.use(TerserPlugin, [terserOptions(options)])
|
|
211
|
-
})
|
|
212
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveScript = exports.canInlineTemplate = void 0;
|
|
4
|
-
const compiler_sfc_1 = require("@vue/compiler-sfc");
|
|
5
|
-
const clientCache = new WeakMap();
|
|
6
|
-
const serverCache = new WeakMap();
|
|
7
|
-
/**
|
|
8
|
-
* inline template mode can only be enabled if:
|
|
9
|
-
* - is production (separate compilation needed for HMR during dev)
|
|
10
|
-
* - template has no pre-processor (separate loader chain required)
|
|
11
|
-
* - template is not using src
|
|
12
|
-
*/
|
|
13
|
-
function canInlineTemplate(descriptor, isProd) {
|
|
14
|
-
const templateLang = descriptor.template && descriptor.template.lang;
|
|
15
|
-
const templateSrc = descriptor.template && descriptor.template.src;
|
|
16
|
-
return false; // QCode Modified
|
|
17
|
-
}
|
|
18
|
-
exports.canInlineTemplate = canInlineTemplate;
|
|
19
|
-
function resolveScript(descriptor, scopeId, options, loaderContext) {
|
|
20
|
-
var _a;
|
|
21
|
-
if (!descriptor.script && !descriptor.scriptSetup) {
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
const isProd = loaderContext.mode === 'production' || process.env.NODE_ENV === 'production';
|
|
25
|
-
const isServer = (_a = options.isServerBuild) !== null && _a !== void 0 ? _a : loaderContext.target === 'node';
|
|
26
|
-
const enableInline = canInlineTemplate(descriptor, isProd);
|
|
27
|
-
const cacheToUse = isServer ? serverCache : clientCache;
|
|
28
|
-
const cached = cacheToUse.get(descriptor);
|
|
29
|
-
if (cached) {
|
|
30
|
-
return cached;
|
|
31
|
-
}
|
|
32
|
-
let resolved = null;
|
|
33
|
-
let compiler;
|
|
34
|
-
if (typeof options.compiler === 'string') {
|
|
35
|
-
compiler = require(options.compiler);
|
|
36
|
-
}
|
|
37
|
-
else {
|
|
38
|
-
compiler = options.compiler;
|
|
39
|
-
}
|
|
40
|
-
if (compiler_sfc_1.compileScript) {
|
|
41
|
-
try {
|
|
42
|
-
resolved = compiler_sfc_1.compileScript(descriptor, {
|
|
43
|
-
id: scopeId,
|
|
44
|
-
isProd,
|
|
45
|
-
inlineTemplate: enableInline,
|
|
46
|
-
refSugar: options.refSugar,
|
|
47
|
-
babelParserPlugins: options.babelParserPlugins,
|
|
48
|
-
templateOptions: {
|
|
49
|
-
ssr: isServer,
|
|
50
|
-
compiler,
|
|
51
|
-
compilerOptions: options.compilerOptions,
|
|
52
|
-
transformAssetUrls: options.transformAssetUrls || true,
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
catch (e) {
|
|
57
|
-
loaderContext.emitError(e);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
else if (descriptor.scriptSetup) {
|
|
61
|
-
loaderContext.emitError(`<script setup> is not supported by the installed version of ` +
|
|
62
|
-
`@vue/compiler-sfc - please upgrade.`);
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
resolved = descriptor.script;
|
|
66
|
-
}
|
|
67
|
-
cacheToUse.set(descriptor, resolved);
|
|
68
|
-
return resolved;
|
|
69
|
-
}
|
|
70
|
-
exports.resolveScript = resolveScript;
|