Akryum / meteor-vite

MIT License
33 stars 16 forks source link

Client can import from server folders #9

Closed red-meadow closed 1 year ago

red-meadow commented 1 year ago

This code works fine with meteor-vite:

// client.js
import { xxx } from '/server/yyy'
console.log(xxx)

Isobuild doesn't allow this. It helps to prevent accidental imports of the server code.

diavrank commented 1 year ago

actually, isobuild does allow that, since it is the way to import the collections to subscribe to publications