mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat: basic webpack-chain setup
This commit is contained in:
committed by
Nathan Walker
parent
96da507d64
commit
aaae0d4f2e
@@ -0,0 +1,26 @@
|
||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`vue configuration works 1`] = `
|
||||
Object {
|
||||
"entry": Object {
|
||||
"bundle.js": Array [
|
||||
"bundle.js",
|
||||
],
|
||||
},
|
||||
"module": Object {
|
||||
"rules": Array [
|
||||
Object {
|
||||
"test": /\\\\\\.vue\\$/,
|
||||
"use": Array [
|
||||
Object {
|
||||
"loader": "vue-loader",
|
||||
"options": Object {
|
||||
"compiler": "nativescript-vue-template-compiler",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
`;
|
||||
7
packages/webpack5/__tests__/configuration/vue.spec.ts
Normal file
7
packages/webpack5/__tests__/configuration/vue.spec.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { vueConfig } from '@nativescript/webpack';
|
||||
|
||||
describe('vue configuration', () => {
|
||||
it('works', () => {
|
||||
expect(vueConfig('')).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user